I am trying to get a response from an energy monitor gateway. I keep getting “400 Bad Request” response. The device is at 192.168.63.101 and that is what the POST in the console seems to show it is sending. But when I look at the RAW output in the console, I do not see the IP address between “POST” and the rest of the URL. I was expecting to see “POST http://192.168.63.101/cgi-bin/post_manager” and then HTTP1.1 and the rest of the header and body, etc. How do I insure that the full POST with IP address is being sent?
Also, the API requires a “blank line, consisting only of the carriage return and line feed characters
(0x0D, 0x0A).” This is right from the API manual. How do I insure that I have a blank line with and only, before the body?
This is the raw log from the console (authorization changed for security reasons):
POST /cgi-bin/post_manager HTTP/1.1
Authorization: Basic MDA5MmYyOjcxxxxxxxxxxxxxxxxxxxx=
HTTP/1.1 400 Bad Request
Date: Wed, 05 Aug 2020 16:50:22 GMT
400 - Bad RequestShow pretty log
I have edited the contents of the “Header” tab to include “Content-Type: text/xml” manually, which is what the API manual calls for and I have tried using auto-calculated length as well as manually adding a key for “Content-Length: 43” but I still get the 400 error. I am stumped. Thanks in advance!