diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-28 16:15:41 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-28 16:15:41 +0000 |
commit | 84854e6db6f4de547797fad6bce03526881d07cc (patch) | |
tree | 9c7b9afb164e88ff76564c942948c8480ce7eb88 /main.c | |
parent | [w3m-dev 03070] Re: https through proxy (diff) | |
download | w3m-84854e6db6f4de547797fad6bce03526881d07cc.tar.gz w3m-84854e6db6f4de547797fad6bce03526881d07cc.zip |
[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 <ukai@debian.or.jp>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 <signal.h> @@ -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]++; |