Skip to main content

sess:request_add_header

Last updated March 2020

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

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?