Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-19 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found