delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/18/22:10:18

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=Gg+ifiOWy/MAW6GIhMickxD2+9Pekpwjvl3Q25GrT05K46PcV9Orc
giMCcfaGxe/uGNq1aCzYBSq2i9IM2CJC0LjdtSmoGhOdzHUHbHpZyyUulESfBdfe
Pi4sMoaHrVCv578IecjhgpM3i6Xt5KJWmU5aPvLHSR4TUpsoybnKmE=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=xqfpo58CM9PP3H4bk+NE+f472qE=; b=qJcGpdnZBXoXWHE1FTylz54V7k76
VOotqTytVZCMS+LvK/UQAccwJKxBbfsE4jHTFgfFiTm/f5i6GEdZujtmDtqInJrG
guvkmbUdqTTfhmXyzQMr3+uN7mGb/M7E6GJ3EaYrrG1U36Db/RoSar616IDdHinT
8e721sFkJ6X939c=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=AWS, bitbucket, BitBucket, aws
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: curl doesn't follow redirection?
Date: Tue, 19 Jul 2016 02:09:02 +0000 (UTC)
Lines: 34
Message-ID: <loom.20160719T034936-126@post.gmane.org>
References: <CAL1QdWeKB1S0Vub1xXdPu93NBxKbwGRNLtZ_wk+jWN+p1i1MVg AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Roger Pack <rogerdpack2 <at> gmail.com> writes:
> As a note, the following "seems" to work fine in Linux, but not Cygwin:
> curl -v
https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-0.6.0.tar.bz2
-O -L
> curl --version
> curl 7.49.1 (i686-pc-cygwin) libcurl/7.49.1 OpenSSL/1.0.2h zlib/1.2.8
> libidn/1.29 libpsl/0.13.0 (+libidn/1.29) libssh2/1.7.0 nghttp2/1.7.1
> Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
> pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
> Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM
> NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets Metalink PSL

Cygwin curl current 7.49 supports SPNEGO, ALPN, HTTP/2 with BitBucket and AWS. 
It is likely that your Linux version is older and does not support these
features (like mine at 7.26), unless you have upgraded it to your distro's
experimental release: check its version, and the supported features. 

It looks as if Cygwin curl and/or the target sites do not correctly handle
the new features. 

Your original command does not work for me either, but disable the new
features by adding --no-npn --no-alpn, and the following works for me:
curl -LOv --no-npn --no-alpn 
https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-0.6.0.tar.bz2

If your Linux curl supports the same features as Cygwin, or if you can
upgrade to a test or experimental release, and get the same issues as
Cygwin, the issue should be reported upstream to the curl developer. 

If both have the new features, but Linux works as expected, run a curl trace
on both and attach to a followup here, with the other information requested
in the Cygwin problem reporting page. 



--
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