Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Forcing to ignore LWP/Net::FTP and use wget/lynx etc

by dmorgo (Pilgrim)
on Sep 28, 2004 at 19:55 UTC ( #394737=note: print w/replies, xml ) Need Help??

in reply to Forcing to ignore LWP/Net::FTP and use wget/lynx etc

You are going to get the benefit of my having hacked through this one a few weeks ago! I wish I, then, had been you, now :-). Finally I am going to get some XP points! Woo-hoo! Oops, I mean, Ommmmmmmmm <glances nervously at head monk>.

Here's what you need for LWP to work with an authenticated proxy (assumes bash):

export export http_proxy=

(Change proxyuserid, proxypass, 9090, and the addresses as appropriate.)

This also assumes there is a call like $ua->env_proxy; in LWP by default (making LWP pay attention to those environment variables by default), which I believe there is.

Let us know if you figure out Net::FTP. I ended up using ncftpget and wget, and hand editing the CPAN file to make it try those first, as someone else described.

Here are the settings for ncftpget:

# ncftpget proxy settings; put in ~/.ncftp/firewall # ftp only firewall-type=2 firewall-user=userid firewall-password=whatever firewall-port=21,localhost,localdomain
And this is what I have for wget:

# put in .wgetrc file: http_proxy = ftp_proxy = # ftp untested use_proxy = on proxy-user=userid proxy-passwd=passwd

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://394737]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-06-24 17:34 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.