Added support for proxy authentication