in reply to UserAgent and proxies

It probably needs a "length", just like it says. I'm not sure what you did sets a length for your POST.

Please read a bit further down the perldoc lwpcook page and try the example using HTTP::Request::Common, which sets all the right things for a POST.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
(jeffa) Re: Re: UserAgent and proxies
by jeffa (Bishop) on Feb 06, 2001 at 20:18 UTC
    And that's the scwewy paaart.

    Once again, I trimmed down my example and left out some important details - I am trying to patch Geo::Weather to use LWP (and thus have proxy support).

    I tried using POST requests at first, www.weather.com didn't like that at all: I would get HTML content back, but whatever they use to generate the content refuses to work properly when a POST request is issued. There are 10 of the following error messages scattered about the HTML content:

    [an error occurred while processing this directive]
    I think what I will do is get someone else to test my patch - I am 99% sure it works correctly, but I can't test it on my set up until I fix my proxy problem.

    Jeff

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    F--F--F--F--F--F--F--F--
    (the triplet paradiddle)