HTTP - Maple Help

# Online Help

###### All Products    Maple    MapleSim

HTTP

A package for fetching data via HTTP

 Calling Sequence HTTP[command](arguments) command(arguments)

Description

 • 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.

Accessing HTTP Package Commands

 • 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.
 • Because the underlying implementation of the HTTP package is a module, it is possible to use the form HTTP:-command to access a command from the package. For more information, see Module Members.

List of HTTP Package Commands

 • The following is a list of commands available in the HTTP package.

 • To display the help page for a particular HTTP command, see Getting Help with a Command in a Package.

Examples

 > $\mathrm{with}\left(\mathrm{HTTP}\right):$

Use the URLEncode command to replace non-alphanumeric symbols in a string.

 > $\mathrm{URLEncode}\left("Hello world!"\right)$
 ${"Hello+world%21"}$ (1)
 > $\mathrm{result}≔\mathrm{Get}\left("http://www.maplesoft.com/"\right):$
 > $\mathrm{Code}\left(\mathrm{result}\left[1\right]\right)$
 ${"OK"}$ (2)

References

 RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1, http://tools.ietf.org/html/rfc2616

Compatibility

 • The HTTP package was introduced in Maple 15.
 • For more information on Maple 15 changes, see Updates in Maple 15.

 See Also