clear

The clear statement is used to delete all HTTP headers previously configured using the set http_header statement.

Syntax

clear http_headers

Details

The clear statement will remove all the headers currently defined, after which a new set of headers can be specified using set http_header.

Example

set http_header "Accept: application/json"
set http_header "Authorization: FFDC-4567-AE53-1234"    
set http_savefile "d:\exivity\customers.json"
buffer customers = http GET "https://demo.server.com:4444/v1/customers"

clear http_headers   # Clear headers in order to use a different Authorization: value
set http_header "Accept: application/json"
set http_header "Authorization: ABCD-EFGH-8888-1234"    
set http_savefile "d:\exivity\addresses.json"
buffer customers = http GET "https://demo.server.com:4444/v1/addresses"

Last updated