My device is receiving the following responses to GET and POST requests to the HTTP API:
GET /onep:v1/stack/alias?[alias] HTTP/1.1 Host: [whitelabel].m2.exosite.com User-Agent: [useragent] Connection: close X-Exosite-CIK: [valid CIK] Accept: application/x-www-form-urlencoded; charset=utf-8 HTTP/1.1 200 OK Connection: close Pragma: no-cache Cache-Control: no-cache Content-Type: text/html HTTP/1.0 302 Found Location: /cgi-bin/home.ha Pragma: no-cache Content-Type: text/html
POST /onep:v1/stack/alias HTTP/1.1
X-Exosite-CIK: [valid CIK]
Content-Type: application/x-www-form-urlencoded; charset=utf-8
HTTP/1.0 302 Found
<html><meta http-equiv=Refresh content=0;url=/onep:v1/stack/alias>
I have replaced several things in the above requests with placeholders wrapped in brackets. I only have the first ~200 characters of response from Exosite. The POST also omits the dataport aliases and values which are being sent to Exosite. These GET and POST requests worked previously, returning 200 and 204 respectively. What does the 302 status mean (other than “Found” or possibly redirect), and what should my device do in response to it?