HTTP/URLParse - Maple Help

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

Compatibility

 • The HTTP[URLParse] command was introduced in Maple 15.