bugGNU Wget - Bugs: bug #52633, customizable list of HTTP status...


bug #52633: customizable list of HTTP status codes for which to save server response

Submitter:  None
Submitted:  Sun 10 Dec 2017 03:46:32 PM UTC
Category:  Feature Request Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  ‘Can-ned Food’ Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  1.16
Operating System:  GNU/Linux Reproducibility:  None
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup

Thu 14 Dec 2017 03:52:33 AM UTC, comment #1: 

In principle, the meaning of the body of an HTTP response should be determined by the first digit of the three-digit response code.  See section 6 of RFC 7231 for details.  Skimming it, it seems to me that all response codes can be accompanied by a body, and if the response code doesn't induce wget to take some action to make another request to get the "proper" body for the request, the body in the response should be saved so the user can examine it.

On the other hand, reality might not conform to the rules of RFC 7231.

Can you flesh ou this request with some use cases that show that wget's behavior needs to be customizable in this regard?

Dale Worley <worley>
Sun 10 Dec 2017 03:46:32 PM UTC, original submission:  

Rather than have a fixed list of HTTP status codes for which to save to file the message delivered from the server, and rather than toggling an override by content_on_error which causes server responses to be saved to file for all codes:  Wget should attempt to reference a customizable list, defined by the user, which includes all HTTP status codes for which it shall save the server response to destined output file.
Having a single list and allowing notation to designate ranges of acceptable status codes seems easier than having two lists, one which permits and one which prohibits.



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

Attach Files:

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 worley (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code