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.
In reply to Re: network socket EOF
by dws
in thread network socket EOF
by chame1e0n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |