I am not subscribed to the mailing list, please cc me with any replies.

The current stable version of wget (1.9.1) doesn't allow overriding of the "Accept" header, and so I downloaded 1.10-beta1 pre-release. However, either this version does not seem to deal with the --header option very well, or I have missed something.

The following MS-DOS command line:
wget --header="Accept: text/html, application/xml;q=0.9, application/
xhtml+xml;q=0.9, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1" - -header="Accept-Charset: shift_jis, utf-8, utf-16, iso-8859-1;q=0.6, *;q=0.1" -- header="Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0" http://www.hotm
ail.com

Produces a request with the following headers:
GET /login.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&lc=1033&_lang=EN HTTP/1.0
User-Agent: Wget/1.10-beta1
Accept: text/html
Host: loginnet.passport.com
----------: ----------
Accept-Charset: shift_jis
---------------: -------

I.e., it is truncating some of the header arguments after commas, and ignoring other header arguments altogether.

I am using Windows XP.

Thanks,

James

Reply via email to