delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/08/14:22:43

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=e4qLICAqZcfoAh0O
QseN3mxhh0azU1UyR5HxZDlBZBCXdx5wLSkiuvjzzbdbfmr0YysAgUdRQsEElK2J
F+ozdCAkIr4y9EKMc2sIV3yoGhP91f0myl5f5BHrh+Jqv27OTjLwqK8KjWpTUqmm
O0l52Tcdc6fEcBODv1gEEWYwqTk=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ORaUxwWVREpU12XaT0iNod
zgnVI=; b=tAImPQVsh7YBnMMOgTLwggoy6uut9TC2S2Gh4oX0WTF5Rezlo3F7CE
lhdZG371FA15pP+cgjrWEC9duzHES+m3DW9P2B1ILvgrOsjes2bPgh7k/V3rRMsf
l1OnMS3o8g/bTDUsu/f6jOud2uLG8AJzkm/nQVFgXoZG2245SynYs=
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=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
Subject: Re: Latest curl fails with error 55 (Failed sending HTTP request) with specific URL
To: cygwin AT cygwin DOT com
References: <CADaEXtekHd06JWzN3HJHRLdterOWCyerhUtu42ss0rUEtBC2xg AT mail DOT gmail DOT com>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Message-ID: <56B8EAE2.4000207@cygwin.com>
Date: Mon, 8 Feb 2016 13:22:10 -0600
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: <CADaEXtekHd06JWzN3HJHRLdterOWCyerhUtu42ss0rUEtBC2xg@mail.gmail.com>
X-IsSubscribed: yes

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

- Raw text -


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