added support for basic proxy authentiation.