summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-11-19 19:51:55 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-11-19 19:51:55 (GMT)
commitaf7dc8d8b86de39a16c6cf7bdba263ea1cedf26b (patch)
treef2bd9ca4e8a805c4a3578bab68f8f8340b52e64a /Doc
parenta53f4eba19856613a55ccbcfdb8c862d24a691b9 (diff)
downloadcpython-af7dc8d8b86de39a16c6cf7bdba263ea1cedf26b.zip
cpython-af7dc8d8b86de39a16c6cf7bdba263ea1cedf26b.tar.gz
cpython-af7dc8d8b86de39a16c6cf7bdba263ea1cedf26b.tar.bz2
Patch #831747: Add skip_accept_encoding parameter to putrequest.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libhttplib.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex
index 50b4cf2..8badc71 100644
--- a/Doc/lib/libhttplib.tex
+++ b/Doc/lib/libhttplib.tex
@@ -174,11 +174,16 @@ Send data to the server. This should be used directly only after the
\method{getreply()} has been called.
\end{methoddesc}
-\begin{methoddesc}{putrequest}{request, selector}
+\begin{methoddesc}{putrequest}{request, selector\optional{,
+skip\_host\optional{, skip_accept_encoding}}}
This should be the first call after the connection to the server has
been made. It sends a line to the server consisting of the
\var{request} string, the \var{selector} string, and the HTTP version
-(\code{HTTP/1.1}).
+(\code{HTTP/1.1}). To disable automatic sending of \code{Host:} or
+\code{Accept-Encoding:} headers (for example to accept additional
+content encodings), specify \var{skip_host} or \var{skip_accept_encoding}
+with non-False values.
+\versionchanged[\var{skip_accept_encoding} argument added]{2.4}
\end{methoddesc}
\begin{methoddesc}{putheader}{header, argument\optional{, ...}}