Hello Jens, actually wget doesn't handle gzip compressed files, adding the Accept-Encoding header is just a hack, pretending wget supports gzip when it doesn't.
In order to use -p you need to download the file as plain text, not forcing a compression. Cheers, Giuseppe Jens Schleusener <[email protected]> writes: > Hi, > > sorry, the below described wget behaviour may not be a real bug: > > I use often the wget option > > --page-requisites > > ("-p") but for some test purposes I now added also the option > > --header='Accept-Encoding: gzip, deflate' > > Now wget downloads and saves for e,g, a file named index.html (not > index.html.gz) but in "gzip compressed" format. But wget doesn't seem > to detect that and so cannot find other files that are necessary to > properly display the given HTML page. Any hints to circumvent that > behaviour respectively to force decompression of compressed files > after download? > > Regards > > Jens
