Commit Graph

24 Commits

Author SHA1 Message Date
Azure
83e072d6d5 Allow setting User Agent in Siteconf
Since Google gives usable search results to Lynx but not to w3m, and
many other sites block Lynx but /not/ w3m, we want to be able to set
the User Agent string on a per-site basis.
2019-06-30 12:15:22 -04:00
Laurent Arnoud
b06d1f6a02 Allow to override UserAgent
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
2019-04-21 21:47:52 +02:00
Tatsuya Kinoshita
8c32ce830c Indentation fix 2018-10-26 21:13:46 +09:00
Mark Wright
d10007a2c6 Do not use deprecated features with openssl-1.1 2018-10-24 16:00:04 +02:00
Jia Zhouyang
7a49f77b1e Add error handling code for fopen
Check the return code of fopen, and return when it fails.
2018-03-04 20:57:08 +08:00
Tatsuya Kinoshita
762e28dc89 Fix multi-character character constant for ssl_forbid_method 2018-01-06 19:49:57 +09:00
se
1b23ebf644 Extend ssl_forbid_method to disable TLSv1.1
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874218#5
2018-01-06 19:10:52 +09:00
Tatsuya Kinoshita
ba9d78faeb Prevent global-buffer-overflow in parseURL()
Bug-Debian: https://github.com/tats/w3m/issues/41
2016-11-17 20:19:55 +09:00
Leo Famulari
631784149d Disable RC4
Origin: http://git.savannah.gnu.org/cgit/guix.git/commit/?id=62339e2d493bf87a3aabe12e45458581e9705d83
2016-03-30 20:48:53 +09:00
Tatsuya Kinoshita
d6a7f19015 Fix variable is reassigned a value before the old one has been used 2016-03-29 19:18:15 +09:00
Tatsuya Kinoshita
686a824dd4 Fix style of array index is used before limits check
Bug: https://sourceforge.net/p/w3m/feature-requests/25/
2016-03-29 19:12:56 +09:00
David Crosby
7e5b33c30e Remove dead assignments flagged by Clang static analysis 2015-08-11 21:59:27 +09:00
Alan Grow
73ba2d1881 http requests: use Content-Length instead of Content-length 2015-08-10 06:29:55 +09:00
Tatsuya Kinoshita
7d9af1f4b9 Merge branch 'bug/weak-ciphers' 2014-06-23 23:06:17 +09:00
Tatsuya Kinoshita
3335b5e824 Disable ciphers that use keys smaller than 128 bits
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/w3m/+bug/1325674
2014-06-23 22:32:21 +09:00
Tatsuya Kinoshita
a9a6c4924e Merge branch 'bug/openssl' 2013-11-08 00:11:41 +09:00
Cristian Rodriguez
e3e5821562 Use SSL_MODE_RELEASE_BUFFERS if available
Patch from openSUSE on 2012-11-12:
https://build.opensuse.org/request/show/141054
2013-11-07 23:32:59 +09:00
Cristian Rodriguez
095195f629 Use SSL_OP_NO_COMPRESSION if available
Due to the "CRIME attack" (CVE-2012-4929) HTTPS clients
that negotiate TLS-level compression can be abused for
MITM attacks.

Patch from openSUSE on 2012-11-12:
https://build.opensuse.org/request/show/141054
2013-11-07 23:29:54 +09:00
Tatsuya Kinoshita
54b9076584 Merge branch 'bug/schemebug' 2013-10-14 23:04:23 +09:00
AIDA Shinra
c155b93830 Define schemeNumToName() to fix scheme bug
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-schemebug.patch>,
[w3m-dev:04470] on 2013-10-14.
2013-10-14 22:39:55 +09:00
Tatsuya Kinoshita
a32bf68c85 Support the siteconf feature
Patch to support the siteconf feature, from [w3m-dev 04463]
on 2012-06-27, provided by AIDA Shinra.
2013-04-08 21:48:49 +09:00
Tatsuya Kinoshita
5397d09e58 Adding upstream version 0.5.3 2011-05-04 16:41:45 +09:00
Tatsuya Kinoshita
6db339b3d7 Adding upstream version 0.5.2 2011-05-04 16:23:02 +09:00
Tatsuya Kinoshita
72f72d64a4 Adding upstream version 0.5.1 2011-05-04 16:05:14 +09:00