Package shttp :: Module sHTTP :: Class HTTPClient
[show private | hide private]
[frames | no frames]

Class HTTPClient

HTTPBase --+
           |
          HTTPClient


The HTTP Client
Method Summary
  __init__(self, address, defaultheaders, sockettimeout, usingssl)
Initialize the HTTP Client, it uses the |address| to connect
  __del__(self)
  get_content(self, just_file_pointer, get_raw_data)
Return the content of the document (a POST in the server, a response int the client)
  get_response_reason(self)
  get_response_status(self)
  request_error(self, string)
Manage the request error as bas response
  send_request(self, uri, msg, version, method, headers)
Send a request to the server
  set_socket(self, conn, usingssl)
Change the socket, to manage connetion errors and https connections
    Inherited from HTTPBase
  __getitem__(self, v)
Get the |v| HTTP header
  close(self)
close the Object
  close_socket(self)
  get_httpversion(self)
The version of the HTTP used
  get_method(self)
What method is used to communicate (i.e.
  get_uri(self)
The URI or requested location
  header_error(self, string)
Called when a bad header is present
  put_headers(self, headers)
Send the headers, including the response|request
  read_headers(self)
Read the headers and the (response status|request)

Method Details

__init__(self, address, defaultheaders=None, sockettimeout=None, usingssl=False)
(Constructor)

Initialize the HTTP Client, it uses the |address| to connect
Overrides:
shttp.sHTTP.HTTPBase.__init__

get_content(self, just_file_pointer=False, get_raw_data=False)

Return the content of the document (a POST in the server, a response int the client)
Overrides:
shttp.sHTTP.HTTPBase.get_content (inherited documentation)

request_error(self, string)

Manage the request error as bas response
Overrides:
shttp.sHTTP.HTTPBase.request_error

send_request(self, uri, msg='', version='HTTP/1.1', method='POST', headers=None)

Send a request to the server

set_socket(self, conn=None, usingssl=False)

Change the socket, to manage connetion errors and https connections
Overrides:
shttp.sHTTP.HTTPBase.set_socket

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net