From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28649 invoked by alias); 9 Feb 2016 14:16:43 -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 28635 invoked by uid 89); 9 Feb 2016 14:16:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Latest, clark, Clark, $key X-HELO: mail-vk0-f53.google.com Received: from mail-vk0-f53.google.com (HELO mail-vk0-f53.google.com) (209.85.213.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 09 Feb 2016 14:16:41 +0000 Received: by mail-vk0-f53.google.com with SMTP id e6so117407759vkh.2 for ; Tue, 09 Feb 2016 06:16:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=r5bVeV2aSr8BQf0ttT1cyDfsvJQtVojDMeh/bnyvc7o=; b=ek7tm+5rWOmyS85h75FeLMmLAMsy3Bjp9Lkc5FcIKmbxrzs27jsyj96MAeTRioVKfl R+OQoZQFUJm9xEXAH2jWBYqRiAXhB4IHmcwUn7CSftcLkPJ/XshDOVGtUf4ScAkyAsNc NyrfqRbP3O5xcCU+10O9o5sxKElxmrP3XFfUs/XdeYyk1Ex8PbGfkclpaXgqZbUm8Cv6 2TryTHt4I3MQXTTHm4EbCd9/ynzPBiSILmfAxxSKEGw+6fHxs8C2TWhhlomoDY47eZNA 7hN94+0PQ0AhRVg83ogsiE41bRgrm38aupY6/99ldnpGUs63PkRsaz2hkmeoREkXjyvo RH0A== X-Gm-Message-State: AG10YORUiw+8y8K37A/BixBEzAuVcUkpPC7k3WytchzBnElFn74pv8czLl0a6d+2Vit7at3HF4ic28bmQQY6Cg== X-Received: by 10.31.128.82 with SMTP id b79mr25129368vkd.47.1455027398961; Tue, 09 Feb 2016 06:16:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.135.15 with HTTP; Tue, 9 Feb 2016 06:15:59 -0800 (PST) In-Reply-To: <56B8EAE2.4000207@cygwin.com> References: <56B8EAE2.4000207@cygwin.com> From: Andrew Clark Date: Tue, 09 Feb 2016 14:16:00 -0000 Message-ID: Subject: Re: Latest curl fails with error 55 (Failed sending HTTP request) with specific URL To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00112.txt.bz2 On Mon, Feb 8, 2016 at 2:22 PM, Yaakov Selkowitz wrote: > 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 > Thanks! Passing two header flags did the trick. -- 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