mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
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.
This commit is contained in:
parent
316a793a58
commit
9fa4d61bcc
1 changed files with 12 additions and 0 deletions
|
@ -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
|
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
|
FTP servers which do not return a file size in response to a retrieval
|
||||||
request.
|
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}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{urlcleanup}{}
|
\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
|
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
|
chunk of data is read from the network. \var{reporthook} is ignored for
|
||||||
local URLs.
|
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}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue