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

Rest SetRequestHeader

Use this command to set the header of the REST call that you are about to execute. For example, you may want to set a header that sets the content type of the information that you will be sending via a REST EXECUTEPOST or REST EXECUTEPUT call.

Note: You may set several headers before making the REST EXECUTEPOST, REST EXECUTEPUT, REST EXECUTEHEAD, or REST EXECUTEGET calls.

Copy

Syntax

REST SETREQUESTHEADER HeaderName Value                        

where:

  • HeaderName is the name of the header response to retrieve.
  • Value is the value associated with the specified header.
Copy

Syntax example

REST SETREQUESTHEADER “Content-Type” “application/json”                

Published:

Rest SetRequestHeader

Use this command to set the header of the REST call that you are about to execute. For example, you may want to set a header that sets the content type of the information that you will be sending via a REST EXECUTEPOST or REST EXECUTEPUT call.

Note: You may set several headers before making the REST EXECUTEPOST, REST EXECUTEPUT, REST EXECUTEHEAD, or REST EXECUTEGET calls.

Copy

Syntax

REST SETREQUESTHEADER HeaderName Value                        

where:

  • HeaderName is the name of the header response to retrieve.
  • Value is the value associated with the specified header.
Copy

Syntax example

REST SETREQUESTHEADER “Content-Type” “application/json”                

For an optimal Community experience, Please view on Desktop