From 84854e6db6f4de547797fad6bce03526881d07cc Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 28 Feb 2002 16:15:41 +0000 Subject: [w3m-dev 03072] Proxy-Authorization (Re: Re: https through proxy) * file.c (loadGeneralFile) delete Proxy-Authorization set here * fm.h (HR_FLAG_PROXY): added * main.c (MAIN): need "Basic " for proxy_auth_cookie * url.c (HTTPrequest): add seen_proxy_auth if proxy and no Proxy-Authorization: header seen and has proxy_auth_cookie, use it * url.c (openURL): hr->flag |= HR_FLAG_PROXY * file.c (loadGeneralFile) comment indent fix * html.c (TagMAP): ditto From: Fumitoshi UKAI --- file.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 231e4b2..0cb8069 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.71 2002/02/26 04:08:48 ukai Exp $ */ +/* $Id: file.c,v 1.72 2002/02/28 16:15:41 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -1433,10 +1433,6 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, prevtrap = NULL; add_auth_cookie_flag = 0; - if (proxy_auth_cookie != NULL) { - pushText(extra_header, Sprintf("Proxy-Authorization: Basic %s\r\n", - proxy_auth_cookie->ptr)->ptr); - } load_doc: url_option.referer = referer; url_option.flag = flag; @@ -1566,7 +1562,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, } if (t_buf == NULL) t_buf = newBuffer(INIT_BUFFER_WIDTH); -#if 0 /* USE_SSL */ +#if 0 /* USE_SSL */ if (IStype(f.stream) == IST_SSL) { Str s = ssl_get_certificate(f.stream, pu.host); if (s == NULL) -- cgit v1.2.3