in reply to network socket EOF

.. except waiting for the socket to time out after all data is received gets a bit annoying.

Which is a reason to use LWP::UserAgent or LWP::Simple. Part of the reason these modules exist is to deal with HTTP requests, including honoring the Content-length header in an HTTP response, which informs the client of the number of bytes of response to read (since the socket may be held open for subsequent requests). You can do this yourself on a raw socket, but it's a lot of work that these modules already do.

Replies are listed 'Best First'.
Re: Re: network socket EOF
by chame1e0n (Initiate) on Jul 20, 2003 at 00:06 UTC
    ahh i guess i still haven't grown used to incorporating prefabbed code...lwp works very well though, and my script is quite a lot cleaner :) thanks again to both of you.