David, thank you for your response.
I’ve tried the binary encoding on the thread, but then I can’t get authenticated…
I’ve forced binary by using curl option – CURLOPT_BINARYTRANSFER 1.
And it is transferring binary, but I’m getting 80,000 extra bytes added to the file….
The file size on AIX 7.1 (CL 6.1) is 180845 and ends up as 263058.
Here is my verbose log snippet – does anyone see anything odd?
* Hostname was NOT found in DNS cache
* Trying 999.999.999.999…
* Connected to 999.999.999.999 (999.999.999.999) port 21 (#0)
< 220 EFT Server Enterprise 6.5.5.2
> USER someaccount
< 331 Password required for someaccount.
> PASS guessyguessy
< 230 Login OK. Proceed.
> PWD
< 257 "/" is current folder.
* Entry path is ‘/’
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||5435|).
* Hostname was NOT found in DNS cache
* Trying 999.999.999.999…
* Connecting to 999.999.999.999 (999.999.999.999) port 5435
* Connection failed
* connect to 999.999.999.999 port 21 failed: Connection timed out
* Failed to connect to 999.999.999.999 port 21: Connection timed out
* Failed EPSV attempt. Disabling EPSV
> PASV
< 227 Entering Passive Mode (999,999,999,999,76,163).
* Hostname was NOT found in DNS cache
* Trying 999.999.999.999…
* Connecting to 999.999.999.999 (999.999.999.999) port 19619
* Connected to 999.999.999.999 (999.999.999.999) port 21 (#0)
> TYPE I
< 200 Type set to I.
> STOR ZZTEST6_CPOE2tom6_3032184_20170719_MQNeuroOncCons_F_19520101_F_02180_1028149_02180_1028149__H0414563.pdf
< 150 Opening BINARY mode data connection for ZZTEST6_CPOE2tom6_3032184_20170719_MQNeuroOncCons_F_19520101_F_02180_1028149_02180_1028149__H0414563.pdf.
* We are completely uploaded and fine
* Remembering we are in dir “”
< 226 Transfer complete. 263058 bytes transferred. 263058 bps.
> QUIT
< 221 Service closing control connection.
* Closing connection 0
any help is appreciated…