Parse - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


URL

  

Parse

  

parse a URL into its components

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

Parse(s)

Parameters

s

-

string, a URL to parse

Description

• 

Parse parses a URL into a table of its component parts.

• 

A URL of the form scheme://user:password@host:port/urlpath?query#anchor will be split into the following components.

– 

scheme: The specified protocol (i.e. http, ftp, etc.)

– 

user The username, if specified

– 

password The password, if specified

– 

host The specified host (i.e. www.maplesoft.com)

– 

port The port, if specified

– 

urlpath The path on the host to access

– 

query Query data, if specified

– 

anchor An anchor, if specified

• 

The Construct method performs the reverse operation, constructing a URL from given components.

Examples

URL:-Parsescheme://user:password@host:port/urlpath?query#anchor

tableuser=user,scheme=scheme,port=port,urlpath=/urlpath,anchor=anchor,host=host,password=password,query=?query

(1)

URL:-Parsehttp://www.maplesoft.com/

tablescheme=http,urlpath=/,host=www.maplesoft.com

(2)

References

  

RFC 3986: Uniform Resource Identifier (URI), W3C.

Compatibility

• 

The URL[Parse] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

URL

URL/Construct

URL/Escape

URL/Unescape