Hi Monks,
I'm using LWP::UserAgent to download some files from behind a slightly broken proxy server, which generates lots of keepalive HTTP response headers, causing LWP to keel over saying "Too many header lines (limit is 128)".
I've tracked this message down to Net::HTTP::Methods, and found you can override the default MaxHeaderLines from Net::HTTP::configure() and I've discovered that LWP::Protocol::http::Socket ISA Net::HTTP, but I don't understand how I can get to the Net::HTTP object.
I was hoping for something like
my $ua=LWP::UserAgent->new();
$ua->configure({MaxHeaderLines => 1000});
....or...
my $ua=LWP::UserAgent->new(MaxHeaderLines => 1000); but it's the LWP::Protocol::http::Socket which ISA Net::HTTP, not the LWP::UserAgent, and the constructor complains that it doesn't understand the arguments I've passed it - can anyone point me in the right direction??
Thanks in advance!