bugGNU Wget - Bugs: bug #60289, wget --continue: Range header is...

 
 

bug #60289: wget --continue: Range header is included in other options' HEAD requests

Submitter:  None
Submitted:  Thu 25 Mar 2021 03:14:57 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Clayton M. Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Operating System:  None Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 11 Oct 2021 08:47:08 PM UTC, comment #1: 

The claimed expected behaviour is exactly how Wget behaves on v1.21.2

Closing the issue since it is not reproducible.

Darshit Shah <darnir>
Group administrator
Thu 25 Mar 2021 03:14:57 PM UTC, original submission:  

If --continue/-c is combined with an option that (first) sends a HEAD request, a Range header is unnecessarily included and the server might respond with 416 Requested Range Not Satisfiable.

Including Range would be expected if it was manually included with --header, but I think since -c is for downloading it should only affect specifically GET requests.

Test with Wget 1.21.1:

$ wget https://www.nirsoft.net/utils/downtester.zip
$ touch --date="2010-01-01" downtester.zip    # Remote file is timestamped 2013
$ wget -d --continue --timestamping --no-if-modified-since https://www.nirsoft.net/utils/downtester.zip

(replace older local file, else continue partially completed download)

Excerpt of output:

---request begin---
HEAD /utils/downtester.zip HTTP/1.1
Range: bytes=63701-
User-Agent: Wget/1.21.1
Accept: /
Accept-Encoding: identity
Host: www.nirsoft.net
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 416 Requested Range Not Satisfiable
Date: Thu, 25 Mar 2021 01:42:27 GMT
Server: Apache
Keep-Alive: timeout=4, max=50
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

---response end---

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-11 darnir Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code