Things to think about when writing a DownloadHandler.
Testing!
Should be able to handle the urls that it's designed to handle. A simple test of various kinds of urls is probably sufficient.
Positive test cases
- Make sure it can handle valid urls for the types you're handling.
Negative Test Cases
known bad url: http://ww.fu.b/omgIdontExist
Nonexistant server http://www.example.com
reserved character handling: http://www.sourcemage.org/!@#$%^&*()
- Server that returns 404.html (IE: 200OK, but not what we really want)
- Server that does a redirect (300OK, for HTTP)
URL without a filename: http://www.example.com/file/
