Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

Rest SetRequestEncoded

Use this command to url encode the JSON data you wish to send via a REST EXCECUTE call such as REST EXECUTEPOST or REST EXECUTEPUT call. The encoding takes the JSON string and replaces each of the following characters with a % hex encoding for the following characters:

  • { is encoded as %7B
  • }is encoded as %7D
  • : is encoded as %3A
  • , is encoded as %2C
  • = is encoded as %3D
  • \ is encoded as %5C
Copy

Syntax

REST SETREQUESTENCODED Value [ParameterName]                        

where:

  • value is TRUE or FALSE and indicates whether to url encode the data. The default is FALSE.
  • ParameterName is the name of the optional parameter that will contain the url encoded data. If this parameter is not specified, the encoded data will be contained in a parameter named "jsonData".
Copy

Syntax example

REST SETREQUESTENCODED TRUE jsonData                

In the example, the data being sent will be encoded and sent as a value for the parameter jsonData.

Published:

Rest SetRequestEncoded

Use this command to url encode the JSON data you wish to send via a REST EXCECUTE call such as REST EXECUTEPOST or REST EXECUTEPUT call. The encoding takes the JSON string and replaces each of the following characters with a % hex encoding for the following characters:

  • { is encoded as %7B
  • }is encoded as %7D
  • : is encoded as %3A
  • , is encoded as %2C
  • = is encoded as %3D
  • \ is encoded as %5C
Copy

Syntax

REST SETREQUESTENCODED Value [ParameterName]                        

where:

  • value is TRUE or FALSE and indicates whether to url encode the data. The default is FALSE.
  • ParameterName is the name of the optional parameter that will contain the url encoded data. If this parameter is not specified, the encoded data will be contained in a parameter named "jsonData".
Copy

Syntax example

REST SETREQUESTENCODED TRUE jsonData                

In the example, the data being sent will be encoded and sent as a value for the parameter jsonData.

For an optimal Community experience, Please view on Desktop