in reply to Re^2: Problem with Net::FTP
in thread Problem with Net::FTP

Just wondering whether there is any way to check, whatype of proxy my institute is using?

Yes, ask the resident system administrator :-). S/he should also be able to give you tips on how to configure your FTP connection setup.

Also what do you mean by manual ftp?
I meant you should try connecting with the command line "ftp" client (and I'm assuming you have that at your disposal, if you're on Windows this may not be the case, I have no idea), which allows you to set options like proxy and mode on the command line, thus allowing for easy testing of the requirements.

For my firefox browser setting; HTTP, SSL, FTP , GOPHER are given same proxies (XXXX) (and port 3128) but SOCKS_host has been left blank. Does this gives any clue???

This does seem to indicate that your institute runs an FTP proxy on that machine, and your code (with the change I made) should work. Have you tried turning on debugging, as rpanman suggested? If so, what's the output?

could you pl direct me to some online documentation

Just type "FTP firewall proxy" into Google and you'll find loads of documentation on the subject. The wikipedia entry on FTP might be another place to start


All dogma is stupid.

Replies are listed 'Best First'.
Re^4: Problem with Net::FTP
by cool (Scribe) on Jul 10, 2007 at 13:24 UTC
    Yes tirwhan,
    I tried running it with rpanman's suggestion and pasted the message in reply to his node. Just to inform you, I am working on Linux OS.

      Right. You also need to set the proxy port (since it appears to use the common HTTP proxy port), so try changing that to

      my $ftp=Net::FTP->new(Host => "ftp.cpan.org", Firewall => "XXXX:3128")

      All dogma is stupid.
        Now I run it adding port no. also.
        my $ftp=Net::FTP->new("ftp.cpan.org", Firewall => "XXXX:3128", +Debug => 1)
        It is showing following messages.
        Net::FTP>>> Net::FTP(2.75) Net::FTP>>> Exporter(5.58) Net::FTP>>> Net::Cmd(2.26) Net::FTP>>> IO::Socket::INET(1.27) Net::FTP>>> IO::Socket(1.28) Net::FTP>>> IO::Handle(1.24) Net::FTP=GLOB(0x941b400): Timeout at ftp1.pl line 4 Couldnt connect:

        Can you, please suggest anything??