1 | Index: docs/topics/testing.txt
|
---|
2 | ===================================================================
|
---|
3 | --- docs/topics/testing.txt (revision 16553)
|
---|
4 | +++ docs/topics/testing.txt (working copy)
|
---|
5 | @@ -710,6 +710,17 @@
|
---|
6 | details view, which is a good way to test code paths that use the
|
---|
7 | :meth:`django.http.HttpRequest.is_ajax()` method.
|
---|
8 |
|
---|
9 | + .. admonition:: CGI specification
|
---|
10 | +
|
---|
11 | + The headers sent via ``**extra`` should follow CGI_ specification. For
|
---|
12 | + example, A "Host" header specified in the HTTP request sent from the
|
---|
13 | + browser to the server should be passed as ``HTTP_HOST``, which is
|
---|
14 | + where ``django.core.handlers.wsgi.WSGIRequest.get_host`` looks to
|
---|
15 | + determine the host serving the request.
|
---|
16 | +
|
---|
17 | + .. _CGI: http://www.w3.org/CGI/
|
---|
18 | +
|
---|
19 | +
|
---|
20 | If you already have the GET arguments in URL-encoded form, you can
|
---|
21 | use that encoding instead of using the data argument. For example,
|
---|
22 | the previous GET request could also be posed as::
|
---|