|
set_socket(self,
conn=None,
usingssl=True)
Change the socket, to manage connetion errors and https
connections |
source code
|
|
|
|
|
__init__(self,
address,
defaultheaders=None,
sockettimeout=None,
usingssl=True)
Initialize the HTTP Client, it uses the |address| to connect |
source code
|
|
|
|
|
send_request(self,
uri,
msg='
' ,
version=' HTTP/1.1 ' ,
method=' POST ' ,
headers=None)
Send a request to the server |
source code
|
|
|
__send_request(self,
uri,
msg,
version,
method,
headers)
The real send_request, don't use if you do not know what are you
doing. |
source code
|
|
|
|
|
|
|
get_content(self,
just_file_pointer=True,
get_raw_data=True)
Return the content of the document (a POST in the server, a
response int the client) |
source code
|
|
Inherited from HTTPBase :
__getitem__ ,
close ,
close_socket ,
get_httpversion ,
get_method ,
get_uri ,
header_error ,
put_headers ,
read_headers
|