diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-09-15 06:10:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-09-15 06:10:52 +0000 |
commit | 0da7057591609d98f3e0820a13730d97abb2083a (patch) | |
tree | d905cc961b951f9310eee0eb915d988d2e5a2b3f /lib/http.c | |
parent | 23f22bd53e93279d6844a288229ab0a56b9de5d1 (diff) |
more "anything through http proxy tunnel" fixes
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c index 7d3507ce4..fba4b80cb 100644 --- a/lib/http.c +++ b/lib/http.c @@ -140,7 +140,8 @@ bool static checkheaders(struct UrlData *data, char *thisheader) * this proxy. After that, the socket can be used just as a normal socket. */ -CURLcode GetHTTPProxyTunnel(struct UrlData *data, int tunnelsocket) +CURLcode GetHTTPProxyTunnel(struct UrlData *data, int tunnelsocket, + char *hostname, int remote_port) { int httperror=0; int subversion=0; @@ -153,7 +154,7 @@ CURLcode GetHTTPProxyTunnel(struct UrlData *data, int tunnelsocket) "%s" "%s" "\r\n", - data->hostname, data->remote_port, + hostname, remote_port, (data->bits.proxy_user_passwd)?data->ptr_proxyuserpwd:"", (data->useragent?data->ptr_uagent:"") ); @@ -197,7 +198,8 @@ CURLcode http_connect(struct connectdata *conn) if (conn->protocol & PROT_HTTPS) { if (data->bits.httpproxy) { /* HTTPS through a proxy can only be done with a tunnel */ - result = GetHTTPProxyTunnel(data, data->firstsocket); + result = GetHTTPProxyTunnel(data, data->firstsocket, + data->hostname, data->remote_port); if(CURLE_OK != result) return result; } |