The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ExtractHTTPPath


Unit:SDL_htmlsupport
Class: none
Declaration: function ExtractHTTPPath (const URL: string): string;

The function ExtractHTTPPath returns the path information of the universal resource locator URL, i.e. the string between "http://" and the last slash character.

Example: The statements
var
  astr, bstr : string;

...
astr := 'http://www.lohninger.com/specials/myworld.html';
bstr := ExtractHTTPPath (astr);
...
return the string 'www.lohninger.com/specials/' to the variable bstr.



Last Update: 2023-Feb-06