Top   Module   Use   Manual   Index 

com :: sun :: star :: util ::

struct URL


Description
represents the original and the parsed structure of a Uniform Resource Locator.

It is not necessary to set all of the fields; either URL::Complete or (some of) the others are set. Additionally, most of the other fields, like URL::User , URL::Password , or URL::Mark , are optional.



Elements

string Complete
Description
contains the unparsed original URL, for example, http://me:pass @www.sun.de:8080/pub/test/foo.txt?a=b#xyz
string Main
Description
contains the URL without a mark and without arguments, for example, http://me:pass @www.sun.de:8080/pub/test/foo.txt
string Protocol
Description
contains the protocol (scheme) of the URL, for example, "http"
string User
Description
contains the user-identifier of the URL, for example, "me"
string Password
Description
contains the users password of the URL, for example, "pass"
string Server
Description
contains the server part of the URL, for example, "www.sun.de"
short Port
Description
contains the port at the server of the URL, for example, "8080"
string Path
Description
contains the path part of the URL without the filename, for example, "/pub/test"
string Name
Description
contains the filename part of the URL, for example, "foo.txt"
string Arguments
Description
contains the arguments part of the URL, for example, "a=b"
string Mark
Description
contains the mark part of the URL, for example, "xyz"
Top of Page