|more useful options|
IO::Socket, Multiple GET.by adismaug (Acolyte)
|on Jul 02, 2009 at 11:13 UTC||Need Help??|
adismaug has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to write a script that will perform an HTTP get and analyze the server response.
This should be done in a loop and for performance I would like to create the socket to the server only once and perform the GET on the open socket.
When running my script the socket gets closed and I get an error. Only if I open a new socket, which makes me perform the – syn, syn-ack, ack – all over again, am I able to perform the GET.
How can I accomplish this with one socket?
This is the main script: