in reply to Re: LWP::UserAgent error Unexpected keys - LocalHost
in thread LWP::UserAgent error Unexpected keys - LocalHost

Thanks

I tried the extra lines, this is what I got

$VAR1 = bless( {}, 'HTTP::Headers' ); $VAR1 = bless( { 'client-warning' => 'Internal response', 'client-date' => 'Tue, 29 Jul 2014 23:07:18 GMT', 'content-type' => 'text/plain' }, 'HTTP::Headers' ); >> 500 Unexpected keys - LocalHost

As I said at the start, I'm not surprised that you were able to make it work, I can too an another PC.

My problems is that the Mint10 PC that I'm normally using is giving the problem. I'm trying to find out how to fix it. Unfortunately the debugging info is rather hard to get to grips with for a novice.

Replies are listed 'Best First'.
Re^3: LWP::UserAgent error Unexpected keys - LocalHost
by Anonymous Monk on Jul 30, 2014 at 00:00 UTC
    Hmm... that's not actually LWP's response (despite that 'internal' stuff). Do you use a proxy by any chance? It seems Python's urllib can automatically detect it. Try
    my $ua = ... # as before $ua->env_proxy; ...
      Oh wait, I forgot - it's actually LWP's response.