in reply to Re^2: Force LWP to connect to a proxy for HTTP::Request POST
in thread Force LWP to connect to a proxy for HTTP::Request POST

... $req = HTTP::Request->new(POST => 'mysite.com/user_login.php'); ...

It seems you're not supplying a protocol here. Maybe that's the cause of your error. Personally, I would try with WWW::Mechanize and use something like the Mozilla Live HTTP Headers and Wireshark to inspect and compare the network traffic sent by the browser and your script.

Replies are listed 'Best First'.
Re^4: Force LWP to connect to a proxy for HTTP::Request POST
by xcalibur (Initiate) on Mar 27, 2010 at 02:06 UTC
    I am supplying a protocol. The script works fine (without requiring a proxy) from a LAN. But I need to run it outside the LAN where I need the proxy to connect.
      Your proxy is the problem, see LWP::Debug to get more info
        Thanks Corion. So, if it's the right way of doing it, then I must find another proxy.