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', ... }
|
---|
In Section
Seekers of Perl Wisdom