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