RequestProperty
Structure
RequestProperty(sProperty)
Parameters
Parameter | Type | Description
| sProperty | String | name of the property to look up. There are 16 potential values:
MajorVersion
MinorVersion
Method
RemoteIP
Scheme
Host
Query
OriginalQuery
Fragment
OriginalFragment
Path
OriginalPath
UserInfo
Port
OriginalUri
Authority |
Return Value
String
Description
Use this function to return the value for a specific property in the Web Packet request. These exact properties give details about the full url, or portions of the url, IP address, http client type, etc. Tip: to see a full slate of all these values for an actual web request, turn on 'Log All Requests' before turning on the IndySoft REST Server, then check the log of a web request in the 'History / Status' grid in IndySoftSyncOptions utility.
Example
if RequestProperty("Method") = "GET" then
ResponseStatusCode(606)
ResponseBodyAsText("Thanks for sending a GET request")
End If |