[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange Error - works in FTP client, but not FTPAPI
That is an unknown. The first log in is a proxy of some sort, so my
guess would be a port. Though I have tried two different ones and both
work.
I didn't see/think about FTP_User(). I'll try that. I'll post the code
on my site once I have it working so others can find it easily.
--
Mike Wills
http://mikewills.me
On Thu, Jul 21, 2011 at 10:04 AM, Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx> wrote:
> 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
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------