|
|
|
|
|
URLExtractPath (Function) In french: URLExtraitChemin Returns the various elements of a URL: protocol, user, password, domain, port, resource path, resource name, resource extension, request and fragment.
Ressource = URLExtractPath(...
"http://user1:mdpuser1@www.site.com:80/images/image.gif", ...
urlResourcePath + urlResourceName + urlResourceExtension)
lsServeur = URLExtractPath(...
"http://user1:mdpuser1@www.site.com:80/images/image.gif", ...
urlProtocol + urlDomain + urlPort)
Syntax
<Result> = URLExtractPath(<URL> , <Section to extract>)
<Result>: Character string - Requested URL section.
- Empty string ("") if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant.
<URL>: Character string Full or relative URL to use. <Section to extract>: Integer constant (or combination of constants) URL section to extract:
| | urlDomain | Domain of the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "www.site.com". | urlFragment | Fragment of the URL (anchor in a document). Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "part1". | urlPassword | User password in the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "userpwd1". | urlPort | Port of the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "80". | urlProtocol | Protocol of the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "http". | urlRequest | Request of the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "id=5". | urlResourceExtension | Extension of the resource in the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to ".htm". | urlResourceName | Name of the URL resource. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "page1". | urlResourcePath | Path of the URL resource. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "/pages/". | urlUser | Username in the URL. Example: in the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "user1". |
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|