http://qs321.pair.com?node_id=1213910


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', ... }