summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-21 16:03:11 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-21 16:51:17 +0200
commit5276ec941f09de411d5c00ba2dbc8ac043b705d8 (patch)
treef5916eeb5d7552a200b1c1ba079e3c482d3f10f0 /lib/http_proxy.c
parent09a8b83c2ddc7b79fda3e08a97f31ff89e63de7f (diff)
downloadcurl-5276ec941f09de411d5c00ba2dbc8ac043b705d8.tar.gz
hyper: pass the CONNECT line to the debug callback
Closes #7887
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);