in reply to Re: Downloading first X bytes of a file
in thread Downloading first X bytes of a file

All you need is the relative part of the path. You also generally need the HTTP protocol spec on the end or the server will complain.

print $sock "GET / HTTP/1.0\n";

Replies are listed 'Best First'.
Re^3: Downloading first X bytes of a file
by misc (Friar) on Jun 09, 2008 at 18:36 UTC
    Although I still didn't take a closer look into the http specs..

    Seems to be interesting:
    telnet www.google.de 80
    GET http://www.google.de/ HTTP/1.0[RET]
    Will return with headers.

    while
    GET http://www.google.de/ [RET]
    Doesn't show up any http headers,
    instead it just returns the file.

Re^3: Downloading first X bytes of a file
by misc (Friar) on Jun 09, 2008 at 18:35 UTC
    I shouldn't hit stop while posting...