Httpconnection
- 1 The getresponse() method of HTTPConnection in Python The method getresponse() returns a HTTPResponse object corresponding to the previous HTTP request from the web server. The Python example sends a HTTP PUT request to the server and uses getresponse() to read the response from the server. 18 Oct 2019
- 2 HTTPConnection The HTTPconnection instantiation function creates a connection object and establishes a connection to a HTTP server. This is used for sending HTTP requests like GET, POST, PUT and others to a HTTP server. The Python example creates a HTTPConnection and sends a PUT request to the server. 16 Oct 2019
- 3 The request() method of HTTPConnection in Python The request() method represents a HTTP request like GET, POST, PUT and others. Once a request is sent calling the method getresponse() on the HTTPConnection instance returns a HTTPresponse which can be read to output the resource received. 16 Oct 2019