diff options
Diffstat (limited to 'Doc/lib/liburllib.tex')
-rw-r--r-- | Doc/lib/liburllib.tex | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex index 49bc416..689a5c9 100644 --- a/Doc/lib/liburllib.tex +++ b/Doc/lib/liburllib.tex @@ -2,7 +2,7 @@ \stmodindex{urllib} \index{WWW} \indexii{World-Wide}{Web} -\index{URLs} +\index{URL} This module provides a high-level interface for fetching data across the World-Wide Web. In particular, the \code{urlopen} function is @@ -49,6 +49,21 @@ Clear the cache that may have been built up by previous calls to \code{urlretrieve()}. \end{funcdesc} +\begin{funcdesc}{quote}{string\optional{\, addsafe}} +Replace special characters in \var{string} using the \code{\%xx} escape. +Letters, digits, and the characters ``\code{_,.-}'' are never quoted. +The optional \var{addsafe} parameter specifies additional characters +that should not be quoted --- its default value is \code{'/'}. + +Example: \code{quote('/~conolly/')} yields \code{'/\%7econnolly/'}. +\end{funcdesc} + +\begin{funcdesc}{unquote}{string} +Remove \code{\%xx} escapes by their single-character equivalent. + +Example: \code{unquote('/\%7Econnolly/')} yields \code{'/~connolly/'}. +\end{funcdesc} + Restrictions: \begin{itemize} |