delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/06/16:18:50

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:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=lRsnyQ4Wa+FQboq//w/4H42vqWb7C0AOhEk9jJxRdCz
1JQ2H7QxQZpLTu0iQjIUl0fMiGbxxCl97yxvzIHe48oTO5enl6vm328jKWjzzyLn
J2RrrGMzl/1JLjGO499nNx91cR9/Wlbqh59a1MHolRXdygMHqfDDse0dXjI1RjE4
=
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:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=DrD/BIrPuAXJui6r8ZSOyI+6TWE=; b=tPBwzd7G8aShlW7i2
5BTXO2CqFMnmLkcGs9ztu2YDmit2IPjtpUs/AldxdzNzFb4/8Y5vyLByEqbcNRNJ
kf8rU3Tqxiyss/+BZ1XN4kuKTPIUtZg6WQou60yv9iyl2agTb4t1wdBTfT5rgF8Q
kMrI0bEhUUsCtU9w8cyBHTavIE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
Message-ID: <112f396a1b466039c2bd1fbed0e81e0d9aaac91a.camel@cygwin.com>
Subject: Re: cURL uploads 0 length file for sftp transfer.
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Date: Fri, 06 Sep 2019 16:17:59 -0400
In-Reply-To: <154000859.3440830.1567799052771@mail.yahoo.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>
User-Agent: Evolution 3.32.4 (3.32.4-1.fc30)
MIME-Version: 1.0

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://<user>:<pass>@<server>/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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019