# HTTP Request In IIS7

**URL:** <https://forum.kirupa.com/t/http-request-in-iis7/275239>\
**Category:** programming\
**Created:** [November 11, 2008, 4:49pm UTC](https://forum.kirupa.com/t/http-request-in-iis7/275239 "2008-11-11T16:49:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frenchi](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Frenchi](https://forum.kirupa.com/u/Frenchi)\
**Post date:** [November 11, 2008, 4:49pm UTC](https://forum.kirupa.com/t/http-request-in-iis7/275239/1 "2008-11-11T16:49:54Z")

</div>

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:

```auto
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

```auto
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

```auto
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](http://x.x.x.109/crestron/test.htm) ), but I get errors with the above HTTP header. Any suggestions?
