Skip to main content

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.

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.

Syntax example:

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

Was this article helpful?

We're sorry to hear that.