in reply to How to remove HTTP Keep-Alive 300 header from LWP::UserAgent request
Since you've asked for keep-alives in the constructor: my $ua = LWP::UserAgent->new(keep_alive => 1, send_te => 0) ; then LWP will add both the Connection: keep-alive and the Keep-Alive: 300, as the standard specifies
According to the LWP::UserAgent docs, the argument to keep_alive is the maximum number of connections to cache, so if you do need keep-alives, then 1 is probably not the right number.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to remove HTTP Keep-Alive 300 header from LWP::UserAgent request
by Veltro (Hermit) on Apr 26, 2018 at 14:34 UTC | |
by jeffenstein (Hermit) on Apr 26, 2018 at 15:41 UTC | |
by Veltro (Hermit) on May 01, 2018 at 22:04 UTC | |
by Anonymous Monk on Apr 27, 2018 at 02:28 UTC | |
by Anonymous Monk on Apr 27, 2018 at 02:14 UTC |
In Section
Seekers of Perl Wisdom