summaryrefslogtreecommitdiff
path: root/Doc/lib/libhttplib.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-17 16:34:52 +0000
committerGuido van Rossum <guido@python.org>1997-07-17 16:34:52 +0000
commit5578e257e2e7d27a5c03deac1429af90e5af4306 (patch)
treea14389f6c9367d416d57a70b37eaeaa8a4bf7de3 /Doc/lib/libhttplib.tex
parent9cbf1c520ba933495a2fe9298f037897fb23965c (diff)
downloadcpython-5578e257e2e7d27a5c03deac1429af90e5af4306.tar.gz
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/lib/libhttplib.tex')
-rw-r--r--Doc/lib/libhttplib.tex11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex
index 70bcb3c8d2..7671ab3622 100644
--- a/Doc/lib/libhttplib.tex
+++ b/Doc/lib/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