bugGNU Wget - Bugs: bug #20521, Multiple 'Pragma:' headers not...

 
 

bug #20521: Multiple 'Pragma:' headers not supported

Submitted by:  Noël Köthe <nok>
Submitted on:  Wed 18 Jul 2007 07:45:50 PM UTC  
 
Category:  User Interface Severity:  2 - Minor
Priority:  4 Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  1.10.2 Operating System:  GNU/Linux
Reproducibility:  None Fixed Release:  None
Planned Release:  1.14 Regression:  None
Work Required:  0 - Hours Patch Included:  Yes

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 16 Dec 2009 08:36:07 PM UTC, comment #4:

Just wanted to bump this. Seeing this with wget 1.11.4 under Cygwin. Any reason against inclusion of --append-header in the main tree?

Catalin Patulea <cpatulea>
Mon 01 Dec 2008 09:40:45 PM UTC, comment #3:

Patch to add an --append-header option: http://lists.gnu.org/archive/html/bug-wget/2008-11/msg00078.html

Micah Cowan <micahcowan>
Wed 18 Jul 2007 09:28:50 PM UTC, comment #2:

I have not confirmed this assumption, but it seems extremely likely to me that this is a regression over pre-1.10 releases, because according to the manual, prior to 1.10, issuing --header for headers that wget normally generates automatically (such as "Host") resulted in multiple headers (illegitimately, in the case of "Host"). Probably, the fix for that was to simply have all --header specifications override previous values. Which is the appropriate fix, except for headers that are specified as taking comma-separated lists.

For this reason, I suspect this issue also effects the following standard headers:
Accept
Accept-Charset
Accept-Encoding
Accept-Language
Allow
Cache-Control
Connection
Content-Encoding
Content-Language
Expect
Pragma (listed for completeness)
Via
Warning

At such time as wget might support sending request bodies using HTTP/1.1's "chunked" transfer-coding, the "TE", "Trailer" and "Transfer-Encoding" headers would also be affected.

The same rule applies to Upgrade, but it's not clear to me that this header is currently useful for use with wget, as it currently stands.

Micah Cowan <micahcowan>
Wed 18 Jul 2007 08:48:24 PM UTC, comment #1:

wget needs to do a much better job handling headers. For example, a command line Host header should override the one that wget plans to use.

Tony Lewis <tdlewis77>
Wed 18 Jul 2007 07:45:50 PM UTC, original submission:

Hello,

a forwarded bugreport http://bugs.debian.org/366434

"It's meaningful to have multiple 'Pragma:' headers within an http request, but wget will silently issue only a single one of them if they are specified within separate arguments. For example,

[moise@mole /tmp]$ wget -U 'NSPlayer/4.1.0.3856' --header='Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=2,max-duration=0' --header='Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}' --header='Pragma: xPlayStrm=1' --header='Pragma: stream-switch-count=1' --header='Pragma: stream-switch-entry=ffff:1:0' http://wms.scripps.com:80/knoxville/siler/siler.mp3

... doesn't work, and inspection with ethereal reveals that wget is only sending the last 'Pragma:' header given. Compressing all the 'Pragma' directives into a single header makes the fetch work:

[moise@mole /tmp]$ wget -U 'NSPlayer/4.1.0.3856' --header='Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=2,max-duration=0,xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278},xPlayStrm=1,stream-switch-count=1,stream-switch-entry=ffff:1:0' http://wms.scripps.com:80/knoxville/siler/siler.mp3

"

thx.

Noël Köthe <nok>

 

(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 cpatulea (Posted a comment)
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by tdlewis77 (Posted a comment)
  • -email is unavailable- added by nok (Submitted the item)
  •  

     

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-12-01 micahcowan Planned Release1.15 => 1.14
    2008-12-01 micahcowan StatusNone => Confirmed
        Work Required1 - Days => 0 - Hours
        Patch IncludedNone => Yes
    2008-01-27 micahcowan Planned Release1.12 => 1.15
    2007-08-24 micahcowan Severity3 - Normal => 2 - Minor
        Priority6 => 4
    2007-08-01 micahcowan Priority5 - Normal => 6
    2007-07-21 micahcowan Work RequiredNone => 1 - Days
    2007-07-18 micahcowan Planned ReleaseNone => 1.12

    Back to the top


    Powered by Savane 3.3