Patch to allow filtering on content-type header

2008-07-25 Thread Lars Kotthoff
Hi list,

 I've written a patch which allows filtering on the content-type header to
select what is downloaded. E.g.
wget -r --content-type=text/* http://www.foobar.com
will only download things with a content-type header of text/html, text/plain
etc. There's also a content-type-exclude option to not download specific
content-types.

If people are interested in getting this into wget, I could submit it to the bug
tracker.

Thanks,

Lars


Re: Patch to allow filtering on content-type header

2008-07-25 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lars Kotthoff wrote:
 Hi list,
 
  I've written a patch which allows filtering on the content-type header to
 select what is downloaded. E.g.
 wget -r --content-type=text/* http://www.foobar.com
 will only download things with a content-type header of text/html, text/plain
 etc. There's also a content-type-exclude option to not download specific
 content-types.

Sounds great, Lars!

In fact, we already have an RFE on the bug-tracker for just such a thing
at https://savannah.gnu.org/bugs/?20378; if you'd like to attach it
there, that'd be great.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer,
and GNU Wget Project Maintainer.
http://micah.cowan.name/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFIirbU7M8hyUobTrERAlUHAJ9pFEOOgspdiYXE54Wg0nD4+e3udgCWMPjM
+muSJuWzt8yJwIlTO3oJbQ==
=+jBB
-END PGP SIGNATURE-