[thelist] html page analyser program

Ken Schaefer ken at adOpenStatic.com
Wed Jul 14 08:06:42 CDT 2004


Hi,

>From reading your code, it seems you are sending (as I understand it):

GET /someURL HTTP/1.0
HOST: www.whatever.com

That is not valid (which is why the remote server is returning 400 Bad
Request). If you want to send the HTTP Host: header, you need to send
HTTP/1.1 as the protocol you are using.

GET /someURL HTTP/1.1
HOST: www.whatever.com

Cheers
Ken

----- Original Message ----- 
From: "Alex Beston" <alex at deltatraffic.co.uk>

Subject: Re: [thelist] html page analyser program


: Ken Schaefer wrote:
:
: >I don't think the problem is "that their server isnt setup that well". I
: >think the problem is with your code. Your code appears to be using
HTTP/1.0.
: >If you want to use the HTTP Host:  header you need to use HTTP/1.1
: >
: >
:  Headers Content:
:
: HTTP/1.1 400 Bad Request
: Date: Wed, 14 Jul 2004 12:44:41 GMT
: Server: Apache/1.2.6
: Connection: close
: Transfer-Encoding: chunked
: Content-Type: text/html
:
: oh well, nice idea though.
:
: alex



More information about the thelist mailing list