bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

403 error when user agent set


From: Whichrichard
Subject: 403 error when user agent set
Date: Sun, 22 Dec 2019 14:11:00 +0000

Hello,

Using Wget 1.20.1. Going to this web page in a web browser works, gives
200. Yet 403 error encountered when this command is run. Specific to the
web page https://chinachannel.org, but has happened on a few other web
pages. Common factor could be Cloudflare, though no challenge in web
browser or redirect.

wget -U 'Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101
Firefox/68.0' 'https://chinachannel.org'

JavaScript not enabled when successfully visiting web page in web
browser. IP address the same when entering command as viewing web page.
No HTTP authentication on web page. Setting referer changes nothing.
User agent used in command same as web browser's. Tried other user
agents. Looked at network log in web browser to see all request headers.
Set them in another command, another 403.

wget --header 'Host: chinachannel.org' --header 'User-Agent: Mozilla/5.0
(Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0' --header
'Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
--header 'Accept-Language: en-US,en;q=0.5' --header 'Accept-Encoding:
gzip, deflate, br' --header 'Connection: keep-alive' --header 'Cookie:
__cfduid=de468177b3d5a6ad73e507b21033978151577022301' --header
'Upgrade-Insecure-Requests: 1' --header 'Pragma: no-cache' --header
'Cache-Control: no-cache' 'https://chinachannel.org/'


Regards,
Richard



reply via email to

[Prev in Thread] Current Thread [Next in Thread]