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 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 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>
Project Administrator
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:
Pragma (listed for completeness)

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 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:


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/' --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/' --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



Noël Köthe <nok>


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

Attach File(s):

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 01 Dec 2008 09:42:08 PM UTCmicahcowanPlanned Release1.15=>1.14
    Mon 01 Dec 2008 09:40:45 PM UTCmicahcowanStatusNone=>Confirmed
      Work Required1 - Days=>0 - Hours
      Patch IncludedNone=>Yes
    Sun 27 Jan 2008 04:27:58 AM UTCmicahcowanPlanned Release1.12=>1.15
    Fri 24 Aug 2007 10:09:25 AM UTCmicahcowanSeverity3 - Normal=>2 - Minor
    Wed 01 Aug 2007 04:46:01 AM UTCmicahcowanPriority5 - Normal=>6
    Sat 21 Jul 2007 02:35:20 AM UTCmicahcowanWork RequiredNone=>1 - Days
    Wed 18 Jul 2007 09:28:50 PM UTCmicahcowanPlanned ReleaseNone=>1.12

    Back to the top

    Powered by Savane 3.1-cleanup