curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Fwd: Question on CURLE_RECV_ERROR (56)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 15 Jan 2018 09:20:24 +0100 (CET)

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