Parse a URL into its components - Maple 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

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,urlpath=/urlpath,scheme=scheme,port=port,query=?query,password=password,anchor=anchor

(1)

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

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

(2)

See Also

URL, URL/Construct, URL/Escape, URL/Unescape

References

  

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


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