summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-24 01:06:40 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-24 01:06:40 (GMT)
commit9fa4d61bccc96ee2cc9d11b843baf83ba3bc503d (patch)
tree7c98620a435cc67958724b1793e7ee5b51961752 /Doc
parent316a793a58ae91cba312bd28649bd0853b62fa0d (diff)
downloadcpython-9fa4d61bccc96ee2cc9d11b843baf83ba3bc503d.zip
cpython-9fa4d61bccc96ee2cc9d11b843baf83ba3bc503d.tar.gz
cpython-9fa4d61bccc96ee2cc9d11b843baf83ba3bc503d.tar.bz2
Moshe Zadka <moshez@math.huji.ac.il>:
Documentation updates for urlretrieve() and URLopener.retrieve(), to reflect Randall Hopper's patch for those functions. This closes SourceForge patch #100837.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/liburllib.tex12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex
index 041863d..3eb1265 100644
--- a/Doc/lib/liburllib.tex
+++ b/Doc/lib/liburllib.tex
@@ -115,6 +115,12 @@ count of blocks transferred so far, a block size in bytes, and the
total size of the file. The third argument may be \code{-1} on older
FTP servers which do not return a file size in response to a retrieval
request.
+
+If the \var{url} uses the \file{http:} scheme identifier, the optional
+\var{data} argument may be given to specify a \code{POST} request
+(normally the request type is \code{GET}). The \var{data} argument
+must in standard \file{application/x-www-form-urlencoded} format;
+see the \function{urlencode()} function below.
\end{funcdesc}
\begin{funcdesc}{urlcleanup}{}
@@ -288,6 +294,12 @@ path component of the input URL. If \var{reporthook} is given, it must be
a function accepting three numeric parameters. It will be called after each
chunk of data is read from the network. \var{reporthook} is ignored for
local URLs.
+
+If the \var{url} uses the \file{http:} scheme identifier, the optional
+\var{data} argument may be given to specify a \code{POST} request
+(normally the request type is \code{GET}). The \var{data} argument
+must in standard \file{application/x-www-form-urlencoded} format;
+see the \function{urlencode()} function below.
\end{methoddesc}