URL - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Web Features : Web Page Access : URL package : URL/Parse

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

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

(1)

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

tablehost=www.maplesoft.com,scheme=http,urlpath=/

(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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam