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

[no subject]



Sender: "Justin Kiteley" <justin@xxxxxxxxxx>

Hello again!

I've been working on the FTP_API pack in my spare time at work to improve
some of our batch transfer applications.  The problem I encountered
once I had all the syntax correct and calls working smoothly was the data
conversion. The file that lands on the PC or UNIX machine is not in ascii
format (all funny characters looks like the ebcdic translation was not
done).  Now I've tried setting Binary mode on and off using ftp_binary with
no change in what the data looks like.  I have also tried sending the exact
same
commands as the 400 client sends (SYST PASV) using ftp_quote, with no
results.
Am I missing something that has to
be done so that conversion from ebcdic to ascii happens?  When I use the 400
ftp client to connect to my pc which is running an FTP server, and do a put,
without changing anything I just sign on then make sure the working
directory is
right and type "put XXXXX"  the file is transferred and is readable on
the pc as a text file in columnar format.  Here is what a log looks like of
first the 400 client, then the FTP_API call in ascii and bin.  Anything that
is X'd out are
IP's or user/pass's.

400 client:
5/17/01 12:11:37 AM - Requested FTP connection from XXX.XXX.XX.XXX ID=4
5/17/01 12:11:37 AM - (     4) 220 ArGoSoft FTP Server Plus, Version 1.2
(1.2.0.9) [UNREGISTERED]
5/17/01 12:11:45 AM - (     4) USER XXXX
5/17/01 12:11:45 AM - (     4) 331 User name OK, need password
5/17/01 12:11:53 AM - (     4) PASS XXXX
5/17/01 12:11:53 AM - (     4) 230 User XXXX logged in successfully **
5/17/01 12:11:53 AM - (     4) SYST
5/17/01 12:11:53 AM - (     4) 215 Windows_NT
5/17/01 12:12:24 AM - (     4) PASV
5/17/01 12:12:24 AM - (     4) 227 Entering passive mode
(XX,XX,XX,XXX,4,109)
5/17/01 12:12:25 AM - (     4) STOR IR03270450
5/17/01 12:12:25 AM - (     4) 150 Opening binary data connection
5/17/01 12:12:33 AM - (     4) 226 Transfer complete
5/17/01 12:12:37 AM - (     4) QUIT
5/17/01 12:12:37 AM - (     4) 221 Aba he
5/17/01 12:12:37 AM - FTP connection with XXX.XXX.XX.XXX ended. ID=4

FTP_API: ASCII
5/17/01 12:09:19 AM - Requested FTP connection from XXX.XXX.XX.XXX ID=2
5/17/01 12:09:19 AM - (     2) 220 ArGoSoft FTP Server Plus, Version 1.2
(1.2.0.9) [UNREGISTERED]
5/17/01 12:09:20 AM - (     2) USER XXX
5/17/01 12:09:20 AM - (     2) 331 User name OK, need password
5/17/01 12:09:21 AM - (     2) PASS XXXX
5/17/01 12:09:21 AM - (     2) 230 User XXXXlogged in successfully **
5/17/01 12:09:23 AM - (     2) TYPE A
5/17/01 12:09:23 AM - (     2) 200 Type set to ASCII
5/17/01 12:09:25 AM - (     2) PORT XXX,XXX,XX,XXX,20,141
5/17/01 12:09:25 AM - (     2) 200 Port command successful
5/17/01 12:09:26 AM - (     2) STOR IR03270450
5/17/01 12:09:26 AM - (     2) 150 Opening ASCII data connection
5/17/01 12:09:37 AM - (     2) 226 Transfer complete
5/17/01 12:09:37 AM - (     2) QUIT
5/17/01 12:09:37 AM - (     2) 221 Aba he
5/17/01 12:09:37 AM - FTP connection with XXX.XXX.XX.XXX ended. ID=2

FTP_API: BINARY
5/17/01 12:19:35 AM - Requested FTP connection from XXX.XXX.XX.XXX ID=5
5/17/01 12:19:36 AM - (     5) 220 ArGoSoft FTP Server Plus, Version 1.2
(1.2.0.9) [UNREGISTERED]
5/17/01 12:19:36 AM - (     5) USER XXX
5/17/01 12:19:36 AM - (     5) 331 User name OK, need password
5/17/01 12:19:37 AM - (     5) PASS XXX
5/17/01 12:19:37 AM - (     5) 230 User XXX logged in successfully **
5/17/01 12:19:38 AM - (     5) TYPE I
5/17/01 12:19:38 AM - (     5) 200 Type set to Image (binary)
5/17/01 12:19:40 AM - (     5) PORT XXX,XXX,XX,XXX,20,153
5/17/01 12:19:40 AM - (     5) 200 Port command successful
5/17/01 12:19:41 AM - (     5) STOR IR03270450
5/17/01 12:19:41 AM - (     5) 150 Opening binary data connection
5/17/01 12:19:52 AM - (     5) 226 Transfer complete
5/17/01 12:19:52 AM - (     5) QUIT
5/17/01 12:19:52 AM - (     5) 221 Aba he
5/17/01 12:19:52 AM - FTP connection with XXX.XXX.XX.XXX ended. ID=5


Any thoughts would be appreciated!



Justin Kiteley
Application Solutions Inc.
905-513-9366 ext. 25
justin@xxxxxxxxxx
www.asiwms.com


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