HTTP
A package for fetching data via HTTP
Calling Sequence
Description
Accessing HTTP Package Commands
List of HTTP Package Commands
Examples
References
Compatibility
HTTP:-command(arguments)
command(arguments)
The HTTP package is a collection of commands for HTTP clients. It only partially implements the HTTP standard. For example, it currently does not support persistent connections.
The HTTP package is implemented on top of the URL package. The URL package is a generalization of the HTTP package.
Each command in the HTTP package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
The long form, HTTP:-command, is always available. The short form can be used after loading the package.
The following is a list of commands available in the HTTP package.
Code
Form
Get
Post
URLDecode
URLEncode
URLParse
To display the help page for a particular HTTP command, see Getting Help with a Command in a Package.
with⁡HTTP:
Use the URLEncode command to replace non-alphanumeric symbols in a string.
URLEncode⁡Hello world!
Hello+world%21
result≔Get⁡http://www.maplesoft.com/:
Code⁡result1
OK
RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1, http://tools.ietf.org/html/rfc2616
The HTTP package was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
URL
Download Help Document