Added (untested) support for proxy authentication
Fixed a typo