Good Morning,
I’m writing a Crestron module to fetch information from my web server. The Crestron processor is at x.x.x.3 and my webserver is at x.x.x.109 on the same subnet. From the processor I’m sending the serial string:
GET /crestron/test.htm HTTP/1.1
Host: http://x.x.x.109/
via TCP/IP to my IIS7 machine on port 80, and it’s replying with
HTTP/1.1 400 Bad Request
HTTP Error 400. The request hostname is invalid.
In my server log, I can see the attempted connection listed as
2008-11-11 15:24:58 x.x.x.109 GET /crestron/test.htm - 80 - x.x.x.3 - 200 0 0
The directory and file exist in the web root, and I can access it by typing it into a browser ( http://x.x.x.109/crestron/test.htm ), but I get errors with the above HTTP header. Any suggestions?