Exchange Web Service Connector 23.2

# set_headers

The `set_headers` method replaces all headers in the HTTP request with new headers.

To add a header without changing existing headers, use the method set_header.

## Syntax

    set_headers( headers )

## Arguments

Argument | Description
--- | ---
`headers` | (table) The new HTTP headers to add to the request. The table must map header names to values.

## Example

    request:set_headers( {X-EXAMPLE="Example", X-ANOTHER="ANOTHER"} )

Copyright 2023 Open Text
Version 23.2 | Last updated March 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Exchange Web Service Connector 23.2

Topic Title: set_headers