webob.client -- Send WSGI requests over HTTP¶
SendRequest(HTTPConnection=<class httplib.HTTPConnection>, HTTPSConnection=<class httplib.HTTPSConnection>)¶
Sends the request, as described by the environ, over actual HTTP. All controls about how it is sent are contained in the request environ itself.
This connects to the server given in SERVER_NAME:SERVER_PORT, and sends the Host header in HTTP_HOST -- they do not have to match. You can send requests to servers despite what DNS says.
environ['webob.client.timeout'] = 10to set the timeout on the request (to, for example, 10 seconds).
Does not add X-Forwarded-For or other standard headers
If you use
httplibconnections will be used.
Turn a Message object into a list of WSGI-style headers.