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 Jul 18 19:45:50 2007  
 
Category: User InterfaceSeverity: 2 - Minor
Priority: 4Status: Confirmed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.10.2Operating System: GNU/Linux
Reproducibility: NoneFixed Release: None
Planned Release: 1.14Regression: None
Work Required: 0 - HoursPatch Included: Yes

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed Dec 16 20:36:07 2009, 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 Dec 1 21:40:45 2008, comment #3:

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

Micah Cowan <micahcowan>
Project Administrator
Wed Jul 18 21:28:50 2007, 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>
Project Administrator
Wed Jul 18 20:48:24 2007, 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 Jul 18 19:45:50 2007, 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cpatulea (Posted a comment)
  • -unavailable- added by micahcowan (Posted a comment)
  • -unavailable- added by tdlewis77 (Posted a comment)
  • -unavailable- added by nok (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Dec 1 21:42:08 2008micahcowanPlanned Release1.15=>1.14
    Mon Dec 1 21:40:45 2008micahcowanStatusNone=>Confirmed
      Work Required1 - Days=>0 - Hours
      Patch IncludedNone=>Yes
    Sun Jan 27 04:27:58 2008micahcowanPlanned Release1.12=>1.15
    Fri Aug 24 10:09:25 2007micahcowanSeverity3 - Normal=>2 - Minor
      Priority6=>4
    Wed Aug 1 04:46:01 2007micahcowanPriority5 - Normal=>6
    Sat Jul 21 02:35:20 2007micahcowanWork RequiredNone=>1 - Days
    Wed Jul 18 21:28:50 2007micahcowanPlanned ReleaseNone=>1.12

    Back to the top


    Powered by Savane 3.1-cleanup