I can PUT and GET just fine using curl, however, I need to be able to do them from a browser REST client in Chrome for a remote control project I’m working on for iRule. I downloaded a REST client for Chrome and it’s working fine for GET, however, I can’t seem to get it to work for PUT’s.
Has anyone had any success doing PUT’s from a browser?
I’m using target_tempurature_f and I think my real problem is I don’t know how to set a value for it from a web browser REST client.
I add Content-Type as a header and application/json as a value for that header and GET returns the json response just fine.
If I add target_temerature_f to the URL as so:
it returns the target temp with a get. I can not figure out how to set it with a PUT. I’ve tried everything. I just keep getting invalid content sent. My issue is I don’t know how to set data in the http request. Any ideas?
This is the curl PUT that works:
curl -L -X PUT “https://developer-api.nest.com/devices/thermostats/NgTlrU5iw.../target_temperature_f?auth=c.8YX…” -H “Content-Type: application/json” -d “72”