So I setup BI to send the calls out to another server running netcat to capture what's being sent.
It is in fact sending a get request, but for some reason HS doesn't like the following data? If the same URL is called in a web browser it works.
Maybe the User Agent plays a roll in this?
Netcat Output
GET /JSON?request=controldevicebylabel&ref=3918&label=On HTTP/1.1
Authorization: Basic "removed this info"
User-Agent: ─ü
Host: 192.168.1.50
Cache-Control: no-cache
Firefox Output - This works
GET /JSON?request=controldevicebylabel&ref=3918&label=On HTTP/1.1
Host: 192.168.1.50
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en
It is in fact sending a get request, but for some reason HS doesn't like the following data? If the same URL is called in a web browser it works.
Maybe the User Agent plays a roll in this?
Netcat Output
GET /JSON?request=controldevicebylabel&ref=3918&label=On HTTP/1.1
Authorization: Basic "removed this info"
User-Agent: ─ü
Host: 192.168.1.50
Cache-Control: no-cache
Firefox Output - This works
GET /JSON?request=controldevicebylabel&ref=3918&label=On HTTP/1.1
Host: 192.168.1.50
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en
Comment