Added support for HTTP GET and HTTP POST requests.