summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 82e282d29..d144990c5 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -816,6 +816,15 @@ static CURLcode CONNECT(struct Curl_easy *data,
result = CURLE_OUT_OF_MEMORY;
goto error;
}
+ if(data->set.verbose) {
+ char *se = aprintf("CONNECT %s HTTP/1.1\r\n", hostheader);
+ if(!se) {
+ result = CURLE_OUT_OF_MEMORY;
+ goto error;
+ }
+ Curl_debug(data, CURLINFO_HEADER_OUT, se, strlen(se));
+ free(se);
+ }
/* Setup the proxy-authorization header, if any */
result = Curl_http_output_auth(data, conn, "CONNECT", HTTPREQ_GET,
hostheader, TRUE);