[plug] [OT] http: different results from browser and telnet
Carl Gherardi
gherardi at cs.curtin.edu.au
Thu Oct 25 16:14:42 WST 2001
On Thu, 25 Oct 2001, Jason Nicholls wrote:
> The answer has been given to you already ;)
>
> In you C program output the Host header along with the GET request. eg:
> (pseudocode)
>
> print "GET / HTTP/1.0\n"
> print "host: www.badlinks.com\n"
> print "\n\n"
>
> The \n might need to be \r\n instead though.
>
>
Little light bulb above head lights up.
I had issues early on using GET / HTTP/x.x and I know realize why...
Cheers for the hand holding all
Carl
More information about the plug
mailing list