On 02.05.21 14:08, Tim Rühsen wrote:
On 01.05.21 07:30, Rm Beer wrote:
SO: Archlinux32 (Linux 5.11.10-arch1-1.0 #1 SMP PREEMPT Sat, 27 Mar
2021 20:56:37 +0000 i686 GNU/Linux)
packages:
wget 1.21.1-1.0
gnutls 3.7.1-1.0

No matter what you do, modifying user-agent, cookies, or headers, it
returns 403. It doesn't happen with other browsers like firefox or
curl.

Line of command:
wget https://lectortmo.com/viewer/5d015e7feac52/cascade
--header="Host: www.google.com" --user-agent="Mozilla/5.0 (X11; Linux
i686; rv:85.0) Gecko/20100101 Firefox/85.0"
--referer="https://lectortmo.com/viewer/5d015e7feac52/cascade"; -O
test.txt

Site with always 403: https://lectortmo.com/

My assumption is that the server requires ALPN. Wget is not using it as

it doesn't support HTTP/2 anyways.

So my assumption was wrong. That server requires the Host: header to be the first in the request. I think that it makes sense to have that header line at the first position anyways.
The change has been pushed.


Wget2 has no issues with that website.
To build the latest version, please follow
https://gitlab.com/gnuwget/wget2#downloading-and-building-from-tarball

Regards, Tim


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to