From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75872 invoked by alias); 6 Sep 2019 20:18:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 75865 invoked by uid 89); 6 Sep 2019 20:18:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=Below, albert, uploads X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Sep 2019 20:18:02 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 631DE1802A20 for ; Fri, 6 Sep 2019 20:18:01 +0000 (UTC) Received: from ovpn-125-151.rdu2.redhat.com (ovpn-125-151.rdu2.redhat.com [10.10.125.151]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0632C1D9 for ; Fri, 6 Sep 2019 20:18:00 +0000 (UTC) Message-ID: <112f396a1b466039c2bd1fbed0e81e0d9aaac91a.camel@cygwin.com> Subject: Re: cURL uploads 0 length file for sftp transfer. From: Yaakov Selkowitz To: cygwin@cygwin.com Date: Fri, 06 Sep 2019 20:18:00 -0000 In-Reply-To: <154000859.3440830.1567799052771@mail.yahoo.com> References: <154000859.3440830.1567799052771.ref@mail.yahoo.com> <154000859.3440830.1567799052771@mail.yahoo.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-09/txt/msg00060.txt.bz2 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. -- Yaakov -- 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