delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/09/09:16:56

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=EPfqats
hPW7jV4XZ5l+nWOi665hxx3zyOqsG4WAbGHlbDbte1dr0q/YFJbuXP+K+PXKihA+
2slzFukH3Kd4DbnD1J5XcqWACwzNy0Y8RvU33oLgTsoGcyTgeFD13fsAKkY97Vog
tgPOdcXwUa8nfSfCcCocD1/6qvksJa1t8IbY=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=aLdGaqoBPP6W0
VOzjv7dtYrAbwY=; b=ZBwCKxoQPCA8P9SUZ7GVChaZPb7Eo8cMs8u84ddIzUCXi
LGeKn9AVBv8JzlrFQDmfbQb0WFlJhYxeYXEiTLbtbubRMSB6iKR2wt4WJqZKqevV
BV/4hfGb1tRlqGvmBi7DXzMW236HRhmaNFNUPd8xjL2OLWh5wT93npFUbFio68=
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=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
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
In-Reply-To: <56B8EAE2.4000207@cygwin.com>
References: <CADaEXtekHd06JWzN3HJHRLdterOWCyerhUtu42ss0rUEtBC2xg AT mail DOT gmail DOT com> <56B8EAE2 DOT 4000207 AT cygwin DOT com>
From: Andrew Clark <lark047 AT gmail DOT com>
Date: Tue, 9 Feb 2016 09:15:59 -0500
Message-ID: <CADaEXtfuAvPWv6-LT6Co+DVEM7u4qA2r3-027TFZO7L9L4HZmg@mail.gmail.com>
Subject: Re: Latest curl fails with error 55 (Failed sending HTTP request) with specific URL
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Mon, Feb 8, 2016 at 2:22 PM, Yaakov Selkowitz <yselkowitz AT cygwin DOT com> 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

- Raw text -


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