[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Strange Error - works in FTP client, but not FTPAPI
Did you try something like this?
fd = FTP_Conn('ftp-edi.pubnet.org': user: pwd );
FTP_Login(fd: '"79999999@xxxxxxxxxxxxxx 10259"': pwd2);
The second login appears to be "normal" so you should be able to use the Login procedure. Just out of curiosity, what is 10259? Is that a port?
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Wills
Sent: Wednesday, July 20, 2011 11:55 PM
To: HTTPAPI and FTPAPI Projects
Subject: Strange Error - works in FTP client, but not FTPAPI
I can run the sample script PubNet provides me (http://murl.me/1g2) on
my OS X terminal and on the FTP command on the i just fine. When
running it through the API it still asks me for a password after this
line "ftp> user "7999999@xxxxxxxxxxxxxx 10259" PASSWORD"
Does the FTPAPI do something a bit different that might cause this problem?
Here is the log from my program:
0: > user "7999999@xxxxxxxxxxxxxx 10259" PASSWORD
0: 331-(----GATEWAY CONNECTED TO edi.pubnet.org----)
0: 331-(220 Enterprise FTP server (Version 1.0.0 Nov. 5, 1996))
0: 331 Password required for 7999999
0: > PASSWORD
0: 530 Not logged in.
My code:
rc = FTP_quote(fd:'user "7999999@xxxxxxxxxxxxxx 10245" PASSWORD');
if (rc < 0);
FTP_errorMsg(fd:ErrNum);
if (ErrNum = FTP_NOFILE);
num_files = 0;
else;
CompMsg(FTP_errorMsg(fd));
FTP_quit(fd);
return;
endif;
endif;
if (rc = 331);
rc = FTP_quote(fd:'PASSWORD');
if (rc < 0);
FTP_errorMsg(fd:ErrNum);
if (ErrNum = FTP_NOFILE);
num_files = 0;
else;
CompMsg(FTP_errorMsg(fd));
FTP_quit(fd);
return;
endif;
endif;
endif;
Note: Not ACTUAL user/pass combination.
--
Mike Wills
http://mikewills.me
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------