in reply to Access the Internet though a Proxy with Perl

To expand on jasonk's answer, the environment variables that work for PPM work because they're actually honored by LWP.pm, which PPM uses for making HTTP requests. You can use LWP directly.

If you're using ActiveState Perl, you'll find "lwpcook" (the LWP Cookbook) in the online documentation. It discusses using LWP to get through proxy servers, and gives examples.

  • Comment on Re: Access the Internet though a Proxy with Perl

Replies are listed 'Best First'.
Re: Re: Access the Internet though a Proxy with Perl
by 2mths (Beadle) on Feb 13, 2003 at 21:04 UTC
    Again - Thankyou for taking the time to reply.

    I have and continue to reference the info found from "perldoc lwpcook" which I belive you suggest looking at. However I have had little success on the subject of authentication. The documentation being perhaps a little too brief for a novice such as myself. It was the use of the phrase "should be able" that prompted me to suspect more info might be available and 'out there'.

    Also the perldoc entry for LWP whilst referencing the use of the environmental variable HTTP_Proxy does not mention the _User and _Pass environmental variables. Still until your post I didn't realise LWP had it's own separate perldoc info and having read it it references some more things that I shall now proceed to check out.