Skip to main content

Name

sess:request_add_header — Add a header to an HTTP session

Synopsis

require('msys.httpclnt')

sess:request_add_header(header, value, replace);

header: string
value: string
replace: boolean

Description

**Configuration Change. ** This function is available as of version 3.6.

Set the header of an HTTP session. Use header for the header identifier and value for its value. If you are replacing an existing header, set repace to 1. Otherwise set it to 0. You must call sess:request_finalize after invoking this function.

For a code example see http_request_eval.

See Also

Was this page helpful?