cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: .Net library Timeout Issue

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 1 May 2015 15:55:12 +0200

On Thu, Apr 30, 2015 at 06:47:30PM -0400, Perry Schwalb wrote:
> I am trying to use the .Net library to upload a file via FTPS to a FileZilla
> server.

Which .Net library? Which libcurl version?

> I am able to upload the file via curl from the command line, but not via my
> program.
>
> Below is the logging prior to the time out.
>
> 2015-04-30 17:16:37.7940 Avreo.Zip.Core.FileTransporter Doing the SSL/TLS
> handshake on the data stream
>
> 2015-04-30 17:16:37.7940 Avreo.Zip.Core.FileTransporter SSL re-using session ID
>
> 2015-04-30 17:16:37.7940 Avreo.Zip.Core.FileTransporter SSLv3, TLS handshake,
> Client hello (1):
>
> 2015-04-30 17:16:37.8070 Avreo.Zip.Core.FileTransporter   I
> ━━━━━━━━━━━━━━━━━━━━━━━━━━
> UBC¸¾f o°uc-        ,HzY."?o
>
> [1]Séil??c :XëÖ|??l©-z{@ ×"
>
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> ¤?ToL>n× 4uO [1] 5
>
> 2015-04-30 17:16:37.8070 Avreo.Zip.Core.FileTransporter SSL connection timeout
>
>
> I have the following options set:
>
> CURLOPT_VERBOSE, CURLOPT_UPLOAD, CURLOPT_URL(ftps://ipaddr/file.txt),
> CURLOPT_USERPWD (user:pwd), CURLOPT_SSL_VERIFYPEER (0), CURLOPT_SSL_VERIFYHOST
> (0), CURLOPT_SSL_VERIFYHOST(10)

What options did you use on the curl command-line that was successful? Was it
the same libcurl version as your .net library?

> Any suggestions would be greatly appreciated.

Try enabling debug logging in your program and find out exactly at what stage
it's failing, for a start. Then compare the log with the equivalent one made
by your curl command-line and see where the differences are.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-01