Module httplib :: Class HTTP
[show private | hide private]
[frames | no frames]

Class HTTP

Known Subclasses:
HTTPS

Compatibility class with httplib.py from 1.5.
Method Summary
  __init__(self, host, port, strict)
Provide a default host, since the superclass requires one.
  close(self)
  connect(self, host, port)
Accept arguments to set the host/port, since the superclass doesn't.
  getfile(self)
Provide a getfile, since the superclass' does not use this concept.
  getreply(self)
Compat definition since superclass does not define it.
  putheader(self, header, *values)
The superclass allows only one value argument.
  _setup(self, conn)

Class Variable Summary
int debuglevel
classobj HTTPConnection
int _http_vsn
str _http_vsn_str

Method Details

__init__(self, host='', port=None, strict=None)
(Constructor)

Provide a default host, since the superclass requires one.

connect(self, host=None, port=None)

Accept arguments to set the host/port, since the superclass doesn't.

getfile(self)

Provide a getfile, since the superclass' does not use this concept.

getreply(self)

Compat definition since superclass does not define it.

Returns a tuple consisting of:
- server status code (e.g. '200' if all goes well)
- server "reason" corresponding to status code
- any RFC822 headers in the response from the server

putheader(self, header, *values)

The superclass allows only one value argument.

Class Variable Details

debuglevel

Type:
int
Value:
0                                                                      

HTTPConnection

HTTPConnection = httplib.HTTPConnection

_http_vsn

Type:
int
Value:
10                                                                     

_http_vsn_str

Type:
str
Value:
'HTTP/1.0'                                                             

Generated by Epydoc 1.1 on Thu Oct 16 16:37:23 2003 http://epydoc.sf.net