X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=vT1QU+g5PRlGc+Ld CO3i0faL8RFPnLNhGNTt5tBaTZZR0OeaJUcoA6FDs38wy/kHv2QBvxnbTounEmis V65X6vKPsIy3Atzba9eKqo8FK5mmyuLn0YtC7enXi7FVfnyGVX+o/pLshac3nSWs TO0H5rbkKtP3rawfEW6ruxijvcU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=RrdEARtm7Uab4oaTItZ7nl vId5k=; b=g5jwVec82t1QDwqUMEUjyDI/RBlirnA/bOSJ4+yVyqsDiK6nHJRgQQ Mq1ti5efDoanTz8Ys+PFavjOk3DiIuAH77vZpBM2yrreR1QfeQMY98M2T7Tn1aPk WlRrJ/V5KQhaKaDknea7CyljuUye49aIf5swhyBXmO2o5mSgqbpOU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=uploads X-HELO: smtp-out-no.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: cURL uploads 0 length file for sftp transfer. To: cygwin AT cygwin DOT com References: <154000859 DOT 3440830 DOT 1567799052771 DOT ref AT mail DOT yahoo DOT com> <154000859 DOT 3440830 DOT 1567799052771 AT mail DOT yahoo DOT com> <112f396a1b466039c2bd1fbed0e81e0d9aaac91a DOT camel AT cygwin DOT com> From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <908e9812-86ad-8c3a-1845-cce03d1f1847@SystematicSw.ab.ca> Date: Sat, 7 Sep 2019 15:50:51 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <112f396a1b466039c2bd1fbed0e81e0d9aaac91a.camel@cygwin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2019-09-06 14:17, Yaakov Selkowitz wrote: > On Fri, 2019-09-06 at 19:44 +0000, ALbert via cygwin wrote: >> We recently upgraded cURL from version:curl 7.50.3 (i686-pc-cygwin) >> libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.29 libpsl/0.14.0 >> (+libidn/1.29) libssh2/1.7.0 nghttp2/1.14.0 to curl 7.64.1 (i686-pc- >> cygwin) libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 brotli/1.0.7 >> libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.0.4) >> libssh/0.8.7/openssl/zlib nghttp2/1.37.0 > > Am I reading this right, curl 7.64.1 with libcurl 7.65.3? Those > versions should match exactly. > >> Since the upgrade, we've seen problems uploading text files to sftp servers. Here's the call that we make: >> curl--trace-ascii trace.txt -k sftp://:@/file.txt-T file.txt >> >> On initial call, a 0-length file is uploaded, with successful return code. On immediate rerun, a full file is uploaded (if we wait few minutes, 0-length file will get uploaded). Below are the traces from initial and subsequent calls. We also tried using same version curl on a linux box, without any issues. We also downloaded latest version of curl from curl for Windows, "curl 7.65.3 (i386-pc-win32) libcurl/7.65.3 OpenSSL/1.1.1c (Schannel) zlib/1.2.11 brotli/1.0.7 WinIDN libssh2/1.9.0 nghttp2/1.39.2", and its also working correctly. >> Unfortunately, the server we're uploading to belongs to a client, and we can't see if this is an issue on a server side. However, even if it was, why would linux curl and windows curl (from curl.haxx.se) would work correctly? >> Any help or pointers would be appreciated. Thank you. > > Make sure you are using all the latest packages, especially that you > have the latest and matching versions of curl and libcurl, and try > again. FYI Cygwin curl current version produces: $ curl --version curl 7.65.3 (x86_64-pc-cygwin) libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.0.4) libssh/0.8.7/openssl/zlib nghttp2/1.37.0 Release-Date: 2019-07-19 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS brotli Debug GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP TrackMemory UnixSockets -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple