Forum Feature requests

Support custom HTTP headers (especially Accept-Language)

yyang
This has been brought up several times before, but I find it quite annoying when working with locale-sensitive Wikipedia pages.

For example, a page on zh.wikipedia.org will show apparently different contents with different locales: Simplified Chinese, Traditional Chinese, etc. A mismatch feels inconvenience or even weird to a native speaker.

Years ago, Wikipedia supported the "setlang" query parameter to specify the page language. Unfortunately it has been removed [1].

Currently, the only working method I can find is the Accept-Language request header [2]:

curl -H "Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7" https://zh.wikipedia.org/wiki/2022%E5%B9%B4 -o 2022-zh-CN.html

curl -H "Accept-Language: en-US,en;q=0.9,zh-Hant;q=0.8,zh;q=0.7" https://zh.wikipedia.org/wiki/2022%E5%B9%B4 -o 2022-zh-Hant.html


Wikipedia does offer Chromium-generated PDF version of pages, but the quality is suboptimal. Could you consider adding this feature in a future release? Thanks!
mikeday
The latest build has a new --http-header option!