[Bug 15982] New: wget https://netfilter.org fails due to missing 'Accept:' header

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 11 11:16:11 UTC 2024


https://bugs.busybox.net/show_bug.cgi?id=15982

            Bug ID: 15982
           Summary: wget https://netfilter.org fails due to missing
                    'Accept:' header
           Product: Busybox
           Version: 1.36.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Networking
          Assignee: unassigned at busybox.net
          Reporter: ncopa at alpinelinux.org
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

$ 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: */*'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list