Hello to everybody,

Bad Request (Invalid Hostname) error have been discussed for a lot of
time in the groups already. I have read all of them and have tried
everything what's been described. But the error continues appearing.

My configuration: Server 2003, IIS 6.0

I start Internet Explorer on the same machine where IIS is installed.
The Bad Request (Invalid Hostname) error appears any time I try to
address any of the web sites.

The properties of the Default Web site: All Unussigned (IP)
The WFetch produces the following output with default settings:
started....WWWConnect::Connect("localhost","80")\nIP =
"127.0.0.1:80"\nsource port: 1130\r\n
REQUEST: **************\nGET HTTP/1.1\r\n
Host: localhost\r\n
Accept: */*\r\n
\r\n
RESPONSE: **************\nHTTP/1.1 400 Bad Request\r\n
Content-Type: text/html\r\n
Date: Fri, 25 Aug 2006 09:31:27 GMT\r\n
Connection: close\r\n
Content-Length: 34\r\n
\r\n
<h1>Bad Request (Invalid
URL)</h1>WWWConnect::Close("localhost","80")\nclosed source port:
1130\r\n
finished.

WHAT can I do to diagnose the error further? Thanks for your comments
in advance.

Re: Bad Request (Invalid Hostname) by Kristofer

Kristofer
Fri Aug 25 09:29:59 CDT 2006

Hello,

The response you got when using wfetch was:

Bad Request (Invalid URL)

This was exactly what was expected, because the GET looked like (what you
typed):

GET HTTP/1.1\r\n

This is invalid. It should have looked like:

GET / HTTP/1.1\r\n

A path is necessary. So at this moment, nothing is wrong, everything is
working as expected.

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


vano_e@mail.ru wrote:

>Hello to everybody,
>
>Bad Request (Invalid Hostname) error have been discussed for a lot of
>time in the groups already. I have read all of them and have tried
>everything what's been described. But the error continues appearing.
>
>My configuration: Server 2003, IIS 6.0
>
>I start Internet Explorer on the same machine where IIS is installed.
>The Bad Request (Invalid Hostname) error appears any time I try to
>address any of the web sites.
>
>The properties of the Default Web site: All Unussigned (IP)
>The WFetch produces the following output with default settings:
>started....WWWConnect::Connect("localhost","80")\nIP =
>"127.0.0.1:80"\nsource port: 1130\r\n
>REQUEST: **************\nGET HTTP/1.1\r\n
>Host: localhost\r\n
>Accept: */*\r\n
>\r\n
>RESPONSE: **************\nHTTP/1.1 400 Bad Request\r\n
>Content-Type: text/html\r\n
>Date: Fri, 25 Aug 2006 09:31:27 GMT\r\n
>Connection: close\r\n
>Content-Length: 34\r\n
>\r\n
><h1>Bad Request (Invalid
>URL)</h1>WWWConnect::Close("localhost","80")\nclosed source port:
>1130\r\n
>finished.
>
>WHAT can I do to diagnose the error further? Thanks for your comments
>in advance.

Re: Bad Request (Invalid Hostname) by David

David
Sun Aug 27 03:35:01 CDT 2006

You are truly sending a bad request to IIS, so the error is expected.

GET HTTP/1.1\r\n
Host: localhost\r\n
Accept: */*\r\n
\r\n


It should look like:
GET "something" HTTP/1.1

Where "something" should look like:
/proper/URL/and/resource.extension

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

<vano_e@mail.ru> wrote in message
news:1156497990.161795.79690@h48g2000cwc.googlegroups.com...
> Hello to everybody,
>
> Bad Request (Invalid Hostname) error have been discussed for a lot of
> time in the groups already. I have read all of them and have tried
> everything what's been described. But the error continues appearing.
>
> My configuration: Server 2003, IIS 6.0
>
> I start Internet Explorer on the same machine where IIS is installed.
> The Bad Request (Invalid Hostname) error appears any time I try to
> address any of the web sites.
>
> The properties of the Default Web site: All Unussigned (IP)
> The WFetch produces the following output with default settings:
> started....WWWConnect::Connect("localhost","80")\nIP =
> "127.0.0.1:80"\nsource port: 1130\r\n
> REQUEST: **************\nGET HTTP/1.1\r\n
> Host: localhost\r\n
> Accept: */*\r\n
> \r\n
> RESPONSE: **************\nHTTP/1.1 400 Bad Request\r\n
> Content-Type: text/html\r\n
> Date: Fri, 25 Aug 2006 09:31:27 GMT\r\n
> Connection: close\r\n
> Content-Length: 34\r\n
> \r\n
> <h1>Bad Request (Invalid
> URL)</h1>WWWConnect::Close("localhost","80")\nclosed source port:
> 1130\r\n
> finished.
>
> WHAT can I do to diagnose the error further? Thanks for your comments
> in advance.
>