Home | History | Annotate | Download | only in httplib2

Lines Matching refs:http

9 %     http://www.python.org/doc/current/doc/doc.html
24 A comprehensive HTTP client library. }
51 \modulesynopsis{A comprehensive HTTP client library, \module{httplib2} supports many features left out of other HTTP libraries.}
60 The \module{httplib2} module is a comprehensive HTTP client library with the following features:
63 \item[HTTP and HTTPS] HTTPS support is only available if the socket module was compiled with SSL support.
64 \item[Keep-Alive] Supports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible.
65 \item[Authentication] The following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.
74 The module can handle any HTTP request method, not just GET and POST.
80 If the Socksipy module is installed then httplib2 can handle sock4, sock5 and http proxies.
113 normal responses with an HTTP status code indicating
114 an error occured. See \member{Http.force_exception_to_status_code}
167 \begin{classdesc}{Http}{\optional{cache=None}, \optional{timeout=None}, \optional{proxy_info=None}}
168 The class that represents a client HTTP interface.
181 to Http.request. The \var{info} parameter is either
193 into the constructor of \class{Http}.
210 \subsection{Http Objects}
211 \label{http-objects}
215 Http objects have the following methods:
217 \begin{methoddesc}[Http]{request}{uri, \optional{method="GET", body=None, headers=None, redirections=DEFAULT_MAX_REDIRECTS, connection_type=None}}
218 Performs a single HTTP request.
219 The \var{uri} is the URI of the HTTP resource and can begin with either \code{http} or \code{https}. The value of \var{uri} must be an absolute URI.
221 The \var{method} is the HTTP method to perform, such as \code{GET}, \code{POST}, \code{DELETE}, etc. There is no restriction
239 \begin{methoddesc}[Http]{add_credentials}{name, password, \optional{domain=None}}
244 be used to try to satisfy every HTTP 401 challenge.
247 \begin{methoddesc}[Http]{add_certificate}{key, cert, domain}
253 \begin{methoddesc}[Http]{clear_credentials}{}
257 \begin{memberdesc}[Http]{follow_redirects}
266 \begin{memberdesc}[Http]{forward_authorization_headers}
274 \begin{memberdesc}[Http]{follow_all_redirects}
283 \begin{memberdesc}[Http]{force_exception_to_status_code}
291 \begin{memberdesc}[Http]{ignore_etag}
339 The version of HTTP that the server supports. A value
344 The numerical HTTP status code returned in the response.
348 The human readable component of the HTTP response status code.
353 is just for the very last HTTP request and \var{previous} points to
364 chain of redirects. If \member{Http.force_exception_to_status_code} is \code{True}
383 h = httplib2.Http()
384 resp, content = h.request("http://bitworking.org/")
391 The Http instance also uses a file cache
396 h = httplib2.Http(".cache")
408 h = httplib2.Http()
413 <entry xmlns="http://www.w3.org/2005/Atom">
421 uri = "http://www.example.com/collection/"
438 >>> h = httplib2.Http()
439 >>> resp, content = h.request("http://example.com", method="POST", body=body)
449 h = httplib2.Http(proxy_info = httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP, 'localhost', 8000))
450 r,c = h.request("http://bitworking.org/news/")