This is what I send:
POST /app/devices/< my device id > HTTP/1.1
Host:things.ubidots.com
X-Auth-token:" "
Content-Type: application/json
Content-Length: 52
[{“variable”:" my variable id ",“value”:50}]
I get this in return:
HTTP/1.1 302 Found
Cache-Control: no-cache
Content-length: 0
Location: https://app.ubidots.com
Connection: close
No data is generated, do anyone see a basic error?
I’ve tried both port 80 and 443 using industrial.api.ubidots.com, but then I get 302 Moved Temporarily.
Any hints or tips are appreciated. Thanks.