• Laurent Arnoud's avatar
    Allow to override UserAgent · b06d1f6a
    Laurent Arnoud authored
    Adding on command line the user agent add a duplicate header:
    
    ```
    ./w3m -header "User-Agent: Mozilla" http://localhost:9999
    
    GET / HTTP/1.0
    User-Agent: w3m/0.5.3+git20190105
    Accept: text/html, text/*;q=0.5, image/*, application/*, message/*, x-scheme-handler/*, audio/*, video/*, inode/*
    Accept-Encoding: gzip, compress, bzip, bzip2, deflate
    Accept-Language: en;q=1.0
    Host: localhost:9999
    Pragma: no-cache
    Cache-control: no-cache
    User-Agent: Mozilla
    ```
    
    As a result most server will take the first given; the default
    w3m_version or the one defined on config `user_agent`
    
    With this patch we can now override `User-Agent` from command line
    b06d1f6a
Name
Last commit
Last update
Bonus Loading commit data...
Symbols Loading commit data...
doc Loading commit data...
doc-de Loading commit data...
doc-jp Loading commit data...
libwc Loading commit data...
po Loading commit data...
scripts Loading commit data...
w3m-doc Loading commit data...
w3mimg Loading commit data...
.cvsignore Loading commit data...
ABOUT-NLS Loading commit data...
ChangeLog Loading commit data...
Makefile.in Loading commit data...
NEWS Loading commit data...
README Loading commit data...
Str.c Loading commit data...
Str.h Loading commit data...
TODO Loading commit data...
acinclude.m4 Loading commit data...
aclocal.m4 Loading commit data...
alloc.h Loading commit data...
anchor.c Loading commit data...
backend.c Loading commit data...
buffer.c Loading commit data...
charset-list Loading commit data...
config.guess Loading commit data...
config.h.dist Loading commit data...
config.h.in Loading commit data...
config.rpath Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
cookie.c Loading commit data...
ctrlcode.h Loading commit data...
display.c Loading commit data...
entity.c Loading commit data...
entity.tab Loading commit data...
etc.c Loading commit data...
file.c Loading commit data...
fm.h Loading commit data...
form.c Loading commit data...
form.h Loading commit data...
frame.c Loading commit data...
frame.h Loading commit data...
ftp.c Loading commit data...
func.c Loading commit data...
func.h Loading commit data...
funcname0.awk Loading commit data...
funcname1.awk Loading commit data...
funcname2.awk Loading commit data...
functable.awk Loading commit data...
hash.c Loading commit data...
hash.h Loading commit data...
history.c Loading commit data...
history.h Loading commit data...
html.c Loading commit data...
html.h Loading commit data...
image.c Loading commit data...
indep.c Loading commit data...
indep.h Loading commit data...
inflate.c Loading commit data...
install-sh Loading commit data...
islang.c Loading commit data...
istream.c Loading commit data...
istream.h Loading commit data...
keybind.c Loading commit data...
keybind_lynx.c Loading commit data...
linein.c Loading commit data...
local.c Loading commit data...
local.h Loading commit data...
mailcap.c Loading commit data...
main.c Loading commit data...
map.c Loading commit data...
matrix.c Loading commit data...
matrix.h Loading commit data...
menu.c Loading commit data...
menu.h Loading commit data...
mimehead.c Loading commit data...
mkinstalldirs Loading commit data...
mktable.c Loading commit data...
myctype.c Loading commit data...
myctype.h Loading commit data...
news.c Loading commit data...
parsetag.c Loading commit data...
parsetag.h Loading commit data...
parsetagx.c Loading commit data...
parsetagx.h Loading commit data...
posubst.in Loading commit data...
proto.h Loading commit data...
rc.c Loading commit data...
regex.c Loading commit data...
regex.h Loading commit data...
scrsize.c Loading commit data...
search.c Loading commit data...
symbol.c Loading commit data...
table.c Loading commit data...
table.h Loading commit data...
tagtable.tab Loading commit data...
terms.c Loading commit data...
terms.h Loading commit data...
textlist.c Loading commit data...
textlist.h Loading commit data...
url.c Loading commit data...
version.c.in Loading commit data...
w3mbookmark.c Loading commit data...
w3mhelp-lynx_en.html.in Loading commit data...
w3mhelp-lynx_ja.html.in Loading commit data...
w3mhelp-w3m_en.html.in Loading commit data...
w3mhelp-w3m_ja.html.in Loading commit data...
w3mhelperpanel.c Loading commit data...
w3mimgdisplay.c Loading commit data...