Do basic-auth on remote proxy if username/password given

(So auth is provided to local and remove proxy)


git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@178 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2008-01-20 02:04:31 +00:00
parent dfc4dbdb57
commit b11ad35a2c

7
http.c
View file

@ -233,6 +233,13 @@ void proxy_protocol(PTSTREAM *pts)
strlcat( buf, "\r\n", SIZE );
}
if ( args_info.user_given && args_info.pass_given )
{
strlcat( buf, "Proxy-authorization: Basic ", SIZE );
strlcat( buf, basicauth, SIZE );
strlcat( buf, "\r\n", SIZE );
}
strlcat( buf, "Proxy-Connection: Keep-Alive\r\n\r\n", SIZE );
/*