From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55181 invoked by alias); 8 Feb 2016 19:22:29 -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 55158 invoked by uid 89); 8 Feb 2016 19:22:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=BAYES_05,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, Latest, clark, H*Ad:U*yselkowitz 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 08 Feb 2016 19:22:28 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 05F2CBE01E for ; Mon, 8 Feb 2016 19:22:27 +0000 (UTC) Received: from [10.10.116.37] (ovpn-116-37.rdu2.redhat.com [10.10.116.37]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u18JMPlB023073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Feb 2016 14:22:26 -0500 Subject: Re: Latest curl fails with error 55 (Failed sending HTTP request) with specific URL To: cygwin@cygwin.com References: From: Yaakov Selkowitz Message-ID: <56B8EAE2.4000207@cygwin.com> Date: Mon, 08 Feb 2016 19:22:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00090.txt.bz2 On 2016-02-08 06:57, Andrew Clark wrote: > I've been running a simple script that uses curl to generate a token > from a web service. Up until the last release (7.47.0-2), this had > been working fine. Now, however, I'm consistently getting > > curl: (55) Failed sending HTTP request > > The script I have boils down to this curl request: > > $ curl --header "$header" > https://implementation.concursolutions.com/net2/oauth2/accesstoken.ashx > > where $header contains > > $ echo "$header" > Authorization: Basic Sm9oblNtaXRoQGRhdGFpbnRlbnNpdHlsbGMuY29tOldlbGNvbWUxCg== > X-ConsumerKey: oEcc7vFraW66kVlr3zWb6i > > (these are values for a dummy account with this provider set up to > allow access to their token service) A separate --header flag should be used for each header that you wish to set. IOW: curl --header "Authorization: Basic $AUTH" --header "X-ConsumerKey: $KEY" $URL -- 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