Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

HTTP::Request and keep alive

by Eyck (Priest)
on May 27, 2009 at 15:51 UTC ( #766455=perlquestion: print w/ replies, xml ) Need Help??
Eyck has asked for the wisdom of the Perl Monks concerning the following question:

I can't seem to find any sane way of using HTTP::Request to send multiple requests to web server. Is there any other way to send multiple small http requests down single tcp connection?

Comment on HTTP::Request and keep alive
Replies are listed 'Best First'.
Re: HTTP::Request and keep alive
by ikegami (Pope) on May 27, 2009 at 16:05 UTC

    I can't seem to find any sane way of using HTTP::Request to send multiple requests to web server.

    HTTP::Request doesn't send any requests.

    Perhaps you mean LWP::UserAgent. Neither its interface nor its implementation allows this.

      Perhaps you mean LWP::UserAgent. Neither its interface nor its implementation allows this.

      In theory, there is the keep_alive option that sets up an LWP::ConnCache object, which should handle reusing connections.  OTOH, LWP::ConnCache is documented as 'experimental', and has quite a number of open bugs, so I'm not sure how stable it is...

        LWP::ConnCache has been 'experimental' since 2001, but it hasn't changed... no "active bugs" mention conncache or keep alive

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://766455]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (17)
As of 2015-07-29 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls