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

Re: Need help with http 1.1 headers

by Khen1950fx (Canon)
on Mar 07, 2013 at 03:11 UTC ( #1022134=note: print w/ replies, xml ) Need Help??


in reply to Need help with http 1.1 headers

Use keep_alive => 1 in the constructor. It'll setup a conncache and enable HTTP/1.1.

#/usr/bin/perl use strict; use warnings; use LWP::Useragent; my $ua = LWP::UserAgent->new( keep_alive => 1, ssl_opts => { verify_hostname => 1 }, );


Comment on Re: Need help with http 1.1 headers
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-12-21 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls