in reply to Re^2: Having a problem with Net::FTP, I think...
in thread Having a problem with Net::FTP, I think...

After turning on $ftp->debug(1);, this was what was returned at the stallpoint:
Net::FTP=GLOB(0x18bbb90)>>> ALLO 5012 Net::FTP=GLOB(0x18bbb90)<<< 200 Zzz... Net::FTP=GLOB(0x18bbb90)>>> PORT ***** Net::FTP=GLOB(0x18bbb90)<<< 200 PORT command successful Net::FTP=GLOB(0x18bbb90)>>> STOR ****.cgi

Replies are listed 'Best First'.
Re^4: Having a problem with Net::FTP, I think...
by sk (Curate) on Sep 06, 2005 at 00:39 UTC
    Hmmm...I think you are running into issues with your client/server and perhaps nothing to do with your script.

    You might want to try log-in to the server manually using a FTP program and then try uploading a file...I tried uploading (using your script) to a directory that i don't have permission and it quits with "permission denied" error message. So i am guessing it is not a permission issue.

    Do you have firewalls running?

    Another way to check the script is to login into the server (ssh/telnet/rlogin etc. if you can) and then try to run the program on the same server. if you can upload the file then it is your remote machine that is causing the issue.

    cheers

    SK

      I took my firewall down, and it worked there...I'm running on OS X, does anyone know exactly which preference I'd need to change in my firewall settings to let it work?
        System Preferences -> Sharing -> Firewall -> New

        Set "Port Name" to "Other", add a TCP port number of 20 (ftp-data), and set the description to whatever you like.