Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: How to remove HTTP Keep-Alive 300 header from LWP::UserAgent request

by Veltro (Hermit)
on May 01, 2018 at 22:04 UTC ( #1213910=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to remove HTTP Keep-Alive 300 header from LWP::UserAgent request
in thread How to remove HTTP Keep-Alive 300 header from LWP::UserAgent request

Thanks for pointing that out to me. I already found a way to change extra options before and I managed to combine the information that you gave me into this solution:

use LWP::Protocol::http ; push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, PeerHTTPVersion => 1.1) ;

and addding the Connection header to ns_headers:

my @ns_headers = ( 'Connection' => 'Keep-Alive', ... }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-10-24 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?