WebRequest.Path

From Xojo Documentation

Read-Only Property (As String )
StringValue = aWebRequest.Path

New in 2011r2

Supported for all project types and targets.

Returns the part of the requested url after the /special/ path, without the query string. Using the URL http://mydomain.com/myapp.cgi/special/folder/file?query as an example, this property would be set to "folder/file".

Example

In the WebApplication.HandleSpecialURL event handler, you can check the URL that was used so that you can perform different actions:

Select Case Request.Path
Case "users"
// Return XML containing currently logged in users back to the client
Case "status"
// Return XML containing status information back to the client
End Select

See Also

WebApplication.HandleSpecialURL, WebRequest.QueryString