Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixes #16532 -- Clearer explanation of how the test client expects HT…

…TP headers to be passed. Thanks for the patch, Ricardo Bánffy.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4f50d248a888f04f3ba93b04aaf40aa65a7d5fee 1 parent d99b86d
Chris Beaven authored July 28, 2011

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  docs/topics/testing.txt
9  docs/topics/testing.txt
@@ -710,6 +710,15 @@ arguments at time of construction:
710 710
         details view, which is a good way to test code paths that use the
711 711
         :meth:`django.http.HttpRequest.is_ajax()` method.
712 712
 
  713
+        .. admonition:: CGI specification
  714
+
  715
+            The headers sent via ``**extra`` should follow CGI_ specification.
  716
+            For example, emulating a different "Host" header as sent in the
  717
+            HTTP request from the browser to the server should be passed
  718
+            as ``HTTP_HOST``. 
  719
+
  720
+            .. _CGI: http://www.w3.org/CGI/
  721
+
713 722
         If you already have the GET arguments in URL-encoded form, you can
714 723
         use that encoding instead of using the data argument. For example,
715 724
         the previous GET request could also be posed as::

0 notes on commit 4f50d24

Please sign in to comment.
Something went wrong with that request. Please try again.