curl-users
Re: Fwd: Question on CURLE_RECV_ERROR (56)
Date: Mon, 15 Jan 2018 16:28:56 +0530
Introduction of an appropriate error code for this scenario would be a
better choice.
On Mon, Jan 15, 2018 at 1:50 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Mon, 15 Jan 2018, ghanashyam satpathy via curl-users wrote:
>
> Below is the verbose extract for my application using libcurl.*
>>
>
> CONNECT yahoo.com:443 HTTP/1.1
>>>
>>
> Ah right, in a CONNECT response anything that isn't a 2xx is considered an
> error and curl returns CURLE_RECV_ERROR unconditionally for all of them:
>
> https://github.com/curl/curl/blob/master/lib/http_proxy.c#L624
>
> Looking at our existing error codes, I'm not sure we have an existing code
> that would be much better.
>
> --
>
> / daniel.haxx.se
>
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-15