This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Latest curl fails with error 55 (Failed sending HTTP request) with specific URL
- From: Andrew Clark <lark047 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 9 Feb 2016 09:15:59 -0500
- Subject: Re: Latest curl fails with error 55 (Failed sending HTTP request) with specific URL
- Authentication-results: sourceware.org; auth=none
- References: <CADaEXtekHd06JWzN3HJHRLdterOWCyerhUtu42ss0rUEtBC2xg at mail dot gmail dot com> <56B8EAE2 dot 4000207 at cygwin dot com>
On Mon, Feb 8, 2016 at 2:22 PM, Yaakov Selkowitz <yselkowitz@cygwin.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