summaryrefslogtreecommitdiffstats
path: root/Doc/libhttplib.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-17 16:34:52 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-17 16:34:52 (GMT)
commite47da0ae04814fab2a0aa6e637de2e4269978017 (patch)
tree1360ad7010b92c02d287e79accc1415c77bedc3e /Doc/libhttplib.tex
parent3c2a056fdd3af1f3b94f134b0cab2bd8050c9703 (diff)
downloadcpython-e47da0ae04814fab2a0aa6e637de2e4269978017.zip
cpython-e47da0ae04814fab2a0aa6e637de2e4269978017.tar.gz
cpython-e47da0ae04814fab2a0aa6e637de2e4269978017.tar.bz2
AMK's megapatch:
* \bcode, \ecode added everywhere * \label{module-foo} added everywhere * A few \seealso sections added. * Indentation fixed inside verbatim in lib*tex files
Diffstat (limited to 'Doc/libhttplib.tex')
-rw-r--r--Doc/libhttplib.tex11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/libhttplib.tex b/Doc/libhttplib.tex
index 70bcb3c..7671ab3 100644
--- a/Doc/libhttplib.tex
+++ b/Doc/libhttplib.tex
@@ -1,4 +1,5 @@
\section{Standard Module \sectcode{httplib}}
+\label{module-httplib}
\stmodindex{httplib}
\index{HTTP}
@@ -19,12 +20,12 @@ method should be used to connect to a server. For example, the
following calls all create instances that connect to the server at the
same host and port:
-\begin{verbatim}
+\bcode\begin{verbatim}
>>> h1 = httplib.HTTP('www.cwi.nl')
>>> h2 = httplib.HTTP('www.cwi.nl:80')
>>> h3 = httplib.HTTP('www.cwi.nl', 80)
-\end{verbatim}
-
+\end{verbatim}\ecode
+%
Once an \code{HTTP} instance has been connected to an HTTP server, it
should be used as follows:
@@ -111,7 +112,7 @@ methods.
Here is an example session:
-\begin{verbatim}
+\bcode\begin{verbatim}
>>> import httplib
>>> h = httplib.HTTP('www.cwi.nl')
>>> h.putrequest('GET', '/index.html')
@@ -124,4 +125,4 @@ Here is an example session:
>>> data f.read() # Get the raw HTML
>>> f.close()
>>>
-\end{verbatim}
+\end{verbatim}\ecode