Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fa4d61

Browse files
committed
Moshe Zadka <[email protected]>:
Documentation updates for urlretrieve() and URLopener.retrieve(), to reflect Randall Hopper's patch for those functions. This closes SourceForge patch #100837.
1 parent 316a793 commit 9fa4d61

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/lib/liburllib.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ \section{\module{urllib} ---
115115
total size of the file. The third argument may be \code{-1} on older
116116
FTP servers which do not return a file size in response to a retrieval
117117
request.
118+
119+
If the \var{url} uses the \file{http:} scheme identifier, the optional
120+
\var{data} argument may be given to specify a \code{POST} request
121+
(normally the request type is \code{GET}). The \var{data} argument
122+
must in standard \file{application/x-www-form-urlencoded} format;
123+
see the \function{urlencode()} function below.
118124
\end{funcdesc}
119125

120126
\begin{funcdesc}{urlcleanup}{}
@@ -288,6 +294,12 @@ \subsection{URLopener Objects \label{urlopener-objs}}
288294
a function accepting three numeric parameters. It will be called after each
289295
chunk of data is read from the network. \var{reporthook} is ignored for
290296
local URLs.
297+
298+
If the \var{url} uses the \file{http:} scheme identifier, the optional
299+
\var{data} argument may be given to specify a \code{POST} request
300+
(normally the request type is \code{GET}). The \var{data} argument
301+
must in standard \file{application/x-www-form-urlencoded} format;
302+
see the \function{urlencode()} function below.
291303
\end{methoddesc}
292304

293305

0 commit comments

Comments
 (0)