Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by cfreak (Chaplain)
on Sep 28, 2004 at 13:24 UTC ( #394566=note: print w/ replies, xml ) Need Help??


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

You can probably solve your problem by using passive FTP. Before you run the CPAN shell just put:

export FTP_PASSIVE=1

LWP and Net::FTP should then be able to work around your firewall. You can stick that environment variable in your bashrc as well or if you're using CPAN in a script you should be able to set $ENV{FTP_PASSIVE} = 1 to do the same thing.

HTH

update fixed a typo

update2 Maybe I should start reading the posts first, I've heard its great. Anyway as dmorgo kindly pointed out, my solution won't do authentication for the proxy, he has the correct answer below.


Comment on Re: Forcing CPAN.pm to ignore LWP/Net::FTP and use wget/lynx etc
Select or Download Code
Re^2: Forcing CPAN.pm to ignore LWP/Net::FTP and use wget/lynx etc
by dmorgo (Pilgrim) on Sep 28, 2004 at 19:59 UTC
    He mentioned this is an authenticating proxy. My understanding of authenticating proxies is that this (simply using passive) won't work, because he still needs some way to tell the firewall his userid and password. (See my post below).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://394566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-08-23 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls