Added addHTTPHeader method to client for passing arbitrary HTTP headers such as session cookies