diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-26 08:54:36 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-26 08:54:36 +0000 |
commit | 2c43d64302cc58532768e7e98fceb0e3032950cc (patch) | |
tree | 78aa417739b461b031cf80d8407e3de9cd6337f5 /lib/url.c | |
parent | fd802db39f77fa3985d20e461742bf24644065d6 (diff) |
Added a new 'bit' in the connect struct named 'tunnel_proxy' that is set
if a connection is tunneled through a proxy. A tunnel is done with CONNECT,
either when using HTTPS or FTPS, or if explicitly enabled by the app.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2137,6 +2137,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, conn->bits.user_passwd = data->set.userpwd?1:0; conn->bits.proxy_user_passwd = data->set.proxyuserpwd?1:0; conn->bits.no_body = data->set.opt_no_body; + conn->bits.tunnel_proxy = data->set.tunnel_thru_httpproxy; /* This initing continues below, see the comment "Continue connectdata * initialization here" */ @@ -2838,6 +2839,13 @@ static CURLcode CreateConnection(struct SessionHandle *data, } /************************************************************* + * If the protcol is using SSL and HTTP proxy is used, we set + * the tunnel_proxy bit. + *************************************************************/ + if((conn->protocol&PROT_SSL) && conn->bits.httpproxy) + conn->bits.tunnel_proxy = TRUE; + + /************************************************************* * Take care of user and password authentication stuff *************************************************************/ |