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 --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 9c422ba..1386362 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.84 2002/02/19 15:25:19 ukai Exp $ */ +/* $Id: main.c,v 1.85 2002/02/28 16:15:41 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -643,7 +643,9 @@ MAIN(int argc, char **argv, char **envp) else if (!strcmp("-pauth", argv[i])) { if (++i >= argc) usage(); - proxy_auth_cookie = encodeB(argv[i]); + proxy_auth_cookie = Strnew_m_charp("Basic ", + encodeB(argv[i])->ptr, + NULL); while (argv[i][0]) { argv[i][0] = '\0'; argv[i]++; -- cgit v1.2.3