Bug 15982

Summary: wget https://netfilter.org fails due to missing 'Accept:' header
Product: Busybox Reporter: Natanael Copa <ncopa>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.36.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Natanael Copa 2024-03-11 11:16:11 UTC
$ busybox wget https://netfilter.org
Connecting to netfilter.org ([2001:4b98:dc0:43:216:3eff:fe87:a456]:443)
wget: server returned error: HTTP/1.1 403 Forbidden


GNU wget works:

$ wget https://netfilter.org
--2024-03-11 12:13:00--  https://netfilter.org/
Resolving netfilter.org (netfilter.org)... 2001:4b98:dc0:43:216:3eff:fe87:a456, 92.243.18.11
Connecting to netfilter.org (netfilter.org)|2001:4b98:dc0:43:216:3eff:fe87:a456|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21803 (21K) [text/html]
Saving to: 'index.html'

index.html               100%[==================================>]  21.29K  --.-KB/s    in 0.04s   

2024-03-11 12:13:00 (542 KB/s) - 'index.html' saved [21803/21803]


Adding --header 'Accept: */*' makes busybox wget work as well:

$ busybox wget --header 'Accept: */*' h
ttps://netfilter.org
Connecting to netfilter.org ([2001:4b98:dc0:43:216:3eff:fe87:a456]:443)
saving to 'index.html'
index.html           100% |****************************************************| 21803  0:00:00 ETA
'index.html' saved


Both GNU wget and curl adds 'Accept: */*'.