in reply to Web Page - IO::Sockets

The server will not send a response until it sees the end of the headers which is indicated by a blank line. You should change the line:

print $socket "GET /us/index.asp HTTP/1.0";
to
print $socket "GET /us/index.asp HTTP/1.0\r\n\r\n";
Hope That helps

/J\

Replies are listed 'Best First'.
Re: Re: Web Page - IO::Sockets
by Mitch (Sexton) on Jul 07, 2003 at 15:45 UTC
    Thanks for getting back to me.

    The \r\n\r\n did send the request through, but the response comes back as an invalid Url. If I put the path in the browser I am able to get to the page?
    <HTML><HEAD> <TITLE>Invalid URL</TITLE> </HEAD><BODY> <H1>Invalid URL</H1> The requested URL "&#47;us&#47;index&#46;asp", is invalid.<p> </BODY></HTML>


    Mitch