diff stream/network.c @ 32547:6a629e6fdb09

Add Proxy-Authorization header to authenticate on proxies
author cboesch
date Thu, 18 Nov 2010 20:20:39 +0000
parents e21aa887e9df
children c44141d4e443
line wrap: on
line diff
--- a/stream/network.c	Thu Nov 18 20:18:44 2010 +0000
+++ b/stream/network.c	Thu Nov 18 20:20:39 2010 +0000
@@ -254,6 +254,8 @@
 	if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url );
 
 	http_set_field( http_hdr, "Connection: close");
+	if (proxy)
+		http_add_basic_proxy_authentication(http_hdr, url->username, url->password);
 	http_add_basic_authentication(http_hdr, server_url->username, server_url->password);
 	if( http_build_request( http_hdr )==NULL ) {
 		goto err_out;