bugGNU Wget - Bugs: bug #44318, Make sure user can REMOVE any...

 
 

bug #44318: Make sure user can REMOVE any header, not just alter it

Submitter:  jidanni
Submitted:  Fri 20 Feb 2015 02:14:57 AM UTC
   
 
Category:  User Interface Severity:  3 - Normal
Priority:  5 - Normal Status:  Wont Fix
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 Mar 2015 04:47:06 PM UTC, comment #1: 

By default, Wget sends only the most essential headers required for a valid HTTP request. Removing any of them could cause the request to fail. Hence, we have not provided a mechanism to remove headers from the request.

Although, if you really need it, you can use the method you've already identified and set the headers to a Null string. However, be careful as this may lead to most of your requests being dropped by the server.

Darshit Shah <darnir>
Group administrator
Fri 20 Feb 2015 02:14:57 AM UTC, original submission:  

No matter what one reads on the man page,
one finds no way to remove some headers completely.

The best one can do is make them have no value only.

$ wget --header "" URL --no-http-keep-alive --user-agent="" \
--header Accept: --header Accept-Encoding: --header Connection:

GNU Wget 1.16.1 built on linux-gnu.

jidanni

 

(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)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-02 darnir StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code