WebRequest.QueryString

From Xojo Documentation

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

New in 2011r2

Supported for all project types and targets.

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

Example

This code in WebApplication.HandleSpecialURL could fetch information about a user in the database and return it as XML:

Select Case Request.Path
Case "user"
Var id As String = Request.QueryString
If id <> "" Then
// Create XML containing data for the user ID
Var xml As String
xml = CreateUserXML(id)

Request.Print(xml)
Return True
End If
End Select

See Also

WebApplication.HandleSpecialURL, WebRequest.Entity, WebRequest.QueryString, WebRequest.GetParameter