Added ability to pass headers for HTTP requests