cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl command line proxy

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Dec 2013 16:32:53 +0100 (CET)

On Tue, 3 Dec 2013, Dima Tisnek wrote:

> As far as I understand that requires custom BIO for OpenSSL/TLS.

That might be the case, I haven't relly investigated how the implementation
would look like.

> btw., I have more details on ANY_PROXY error:
> url is server:serverport
> connection is attempted to proxy:proxyport first
> if that fails, an error is reported
> error is reported for server:proxyport
>
> only the error text is incorrect.
> actual socket operations are correct.

Ah yes, is that output caused by the code on line lib/connect.c:829 that you
see? Does the following patch fix the problem for you?

--- a/lib/connect.c
+++ b/lib/connect.c
@@ -827,7 +827,8 @@ CURLcode Curl_is_connected(struct connectdata *conn,
      }

      failf(data, "Failed to connect to %s port %ld: %s",
- conn->host.name, conn->port, Curl_strerror(conn, error));
+ conn->bits.proxy?conn->proxy.name:conn->host.name,
+ conn->port, Curl_strerror(conn, error));
    }

    return code;

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-03