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 16:16:40 +0200

On Fri, May 01, 2015 at 10:07:31AM -0400, Perry Schwalb wrote:
> libcurl.dll 7.13.0.0 2/17/2005 612 KB

This libcurl is over 10 years old.

> LibCurlShim.dll 2/17/2005 68 KB
> LicCurlNet.dll 1.3.0.0 2/17/2005 48 KB
>
> curl -T c:\temp\out.txt -u xxxxxx:yyyyyyyy --verbose -k ftps://24.205.201.101/out14.txt

This looks like a reasonable translation of the libcurl options. But, if your
libcurl is 10 years old the SSL library it's using is probably also of the same
vintage which could cause SSL connection problems with recent servers. Please
try a newer version.

>
> C:\Temp>curl --version
> curl 7.33.0 (x86_64-pc-win32) libcurl/7.33.0 OpenSSL/0.9.8y zlib/1.2.8 libssh2/1.4.3
> Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
> Features: AsynchDNS GSS-Negotiate Largefile NTLM SSL SSPI libz

This version is much newer. Lots has changed that could affect SSL connections.

>
> Thanks,
>
> Perry
>
> -----Original Message-----
> From: curl-library [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
> Sent: Friday, May 01, 2015 8:55 AM
> To: curl-library_at_cool.haxx.se
> Subject: Re: .Net library Timeout Issue
>
> 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