Add HTTP request headers
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To add custom headers to an HTTP request object, use the
AddHeader() method. You can use this method multiple times
to add multiple headers. For example:
|
Content type headers
While the
RequestBuilder attempts
to infer the content type of the request from the request body, you can set the
Content Type header, as follows:
|
To set an
Accept header that specifies the content type to be returned by the
server, select from the following methods:
|