in reply to Web client programming troubles

HTTP defines CRLF as the end-of-line marker for the request header. Try

my $msg = qq{HEAD / HTTP/1.0\r\nHOST: $host\n\n};

There are ten types of people: those that understand binary and those that don't.

Replies are listed 'Best First'.
Re^2: Web client programming troubles
by northwind (Hermit) on Jan 16, 2006 at 13:02 UTC

    More correctly (pulling from the Camel Book) the \r\n should be \015\010. (That is, if you want to ensure platform compatibility issues are not involved)

Re^2: Web client programming troubles
by vancetech (Beadle) on Jan 16, 2006 at 21:23 UTC
    Yeah that worked, thanks tirwhan.