| Method Summary |
| |
__init__(self)
Initializes the object. |
| |
_connect(self,
addr)
Connect to the target web server. |
| |
_sendAll(self,
data)
Sends a string to the socket. |
| Inherited from HTTPClient |
| |
__del__(self)
|
tuple
|
getHeaders(self,
address,
urlstr)
Talk to the target webserver and fetch MIME headers. |
str
|
_fillTemplate(self,
hostname,
port,
url,
params,
query,
fragment)
Fills the request template with relevant information. |
tuple
|
_getHostAndPort(self,
netloc)
Determine the hostname and port to connect to from an URL |
tuple
|
_getReply(self)
Read a reply from the server. |
| |
_putRequest(self,
address,
urlstr)
Sends an HTTP request to the target webserver. |