mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:53:35 +03:00
Karl M added the CURLOPT_CONNECT_ONLY and CURLINFO_LASTSOCKET options that
an app can use to let libcurl only connect to a remote host and then extract the socket from libcurl. libcurl will then not attempt to do any transfer at all after the connect is done.
This commit is contained in:
parent
b0bc2f00d2
commit
87bcb6f377
13 changed files with 119 additions and 48 deletions
|
|
@ -1361,7 +1361,7 @@ CURLcode Curl_http_connect(struct connectdata *conn, bool *done)
|
|||
* after the connect has occured, can we start talking SSL
|
||||
*/
|
||||
|
||||
if(conn->bits.tunnel_proxy) {
|
||||
if(conn->bits.tunnel_proxy && conn->bits.httpproxy) {
|
||||
|
||||
/* either SSL over proxy, or explicitly asked for */
|
||||
result = Curl_proxyCONNECT(conn, FIRSTSOCKET,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue