HTTP/URLParse - Help

Home : Support : Online Help : HTTP/URLParse

HTTP

 URLParse
 Parse a URL into its components

 Calling Sequence URLParse(s)

Parameters

 s - string

Description

 • URLParse converts a URL string of the form scheme://user:password@host:port/urlpath?query#anchor into a table with keys named according to that template.

Examples

 > $\mathrm{HTTP}:-\mathrm{URLParse}\left("scheme://user:password@host:port/urlpath?query#anchor"\right)$
 ${table}{}\left(\left[{"query"}{=}{"?query"}{,}{"scheme"}{=}{"scheme"}{,}{"password"}{=}{"password"}{,}{"port"}{=}{"port"}{,}{"anchor"}{=}{"anchor"}{,}{"urlpath"}{=}{"/urlpath"}{,}{"host"}{=}{"host"}{,}{"user"}{=}{"user"}\right]\right)$ (1)
 > $\mathrm{HTTP}:-\mathrm{URLParse}\left("http://www.maplesoft.com/"\right)$
 ${table}{}\left(\left[{"scheme"}{=}{"http"}{,}{"urlpath"}{=}{"/"}{,}{"host"}{=}{"www.maplesoft.com"}\right]\right)$ (2)

Compatibility

 • The HTTP[URLParse] command was introduced in Maple 15.
 • For more information on Maple 15 changes, see Updates in Maple 15.