[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reply to FTP_putraw not 226



Sender: Scott Klement <klemscot@xxxxxxxxxxxx>


On Mon, 22 Jul 2002, L. Maartens wrote:
>
> I am trying to get a FTP put command working . I am currently using the
> local loopback (127.0.0.1) to send a file from my AS400 to my as400.
>
> When using FTP_Put (sess: AS4dta: AS4ifs) to messages inthe log show the
> file to be send, however, he final return code indicated an error. I get 250
> File transfer completed successfully, but the return code checked in the
> FTP_putraw checks for code 226 for successful completion.

Ooops, you're right, they should be checking for both 250 and 226.
(I guess I've never used it on a server that returns 250 before)

>
> I can not find code 226 in the RFC 542 specs.
>
> Can you enlighten me on what i am missing.
>
> Loek
>

The official Internet Standard for FTP is RFC 959.  It replaced RFC 765 in
Oct of 1985.   RFC 765 replaced RFC 542 in June of 1980.

The RFC 542 standard that you're using as a reference has been obsolete
for over 22 years!   That's what you're missing. :)

According to RFC 959, either 226 or 250 can be given in the reply...
However, this is the first time I've run across a server that uses 250!
I'll fix the code.


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------