cURL / Mailing Lists / curl-users / Single Mail

curl-users

upload of a file using cURL hangs and eventually times out with zero bytes transferred

From: Perrin, Brandon S <brandon.s.perrin_at_lmco.com>
Date: Tue, 13 May 2014 17:38:37 +0000

I have been attempting to upload a file using ftps (--ftp-ssl) to an FTPS server, I can see in the verbose log that I am successfully connecting and attempting to upload my file however I can see in the log where the session hangs up on the "SSLv3, TLS handshake, Client hello (1):" and then eventually times out, below is the command being issued and a portion of the verbose logging showing the STOR command and then the timeout :

Command :
curl -v -k -3 --user <myUserID>:<myPassword> ftps://<ftpsServerIP> -T test.txt

Verbose Log :
< 230 User <myUserID> logged in. Access restrictions apply.
> PBSZ 0
< 200 PBSZ Command OK. Protection buffer size set to 0.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||23046|)
* Trying <ftpsServerIP> ... connected
* Connecting to <ftpsServerIP> (<ftpsServerIP>) port 23046
> TYPE I
< 200 Type set to I.
> STOR test.txt
< 150 Opening BINARY mode data connection for test.txt.
* Doing the SSL/TLS handshake on the data stream
* successfully set certificate verify locations:
* CAfile: /opt/iexpress/curl/share/curl/curl-ca-bundle.crt
  CApath: none
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSL connection timeout
* Uploaded unaligned file size (0 out of 10 bytes)
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:04:58 --:--:-- 0* Connection #0 to host <ftpsServerIP left intact

curl: (28) SSL connection timeout
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
} [data not shown]

Brandon Perrin
Gateway Exchange Services
Integration Services<https://eo-sharepoint-restricted.external.lmco.com/sites/IntegrationServices/default.aspx>
Enterprise Business Services, Lockheed Martin
Office: 985.386.6068 Time Zone: Central
[cid:image001.png@01CDDDD8.3B4FC390]<https://eo-sharepoint-restricted.external.lmco.com/sites/IntegrationServices/default.aspx>

Enterprise Application Integration (EAI) | Enterprise Security Framework (ESF) | Extract, Transform & Load (ETL) | Gateway eXchange Services (GWX)
Next Out Of Office : 6/27 & 7-7 thru 7/11

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

image001.png
Received on 2014-05-13