Share this page

# web_util_set_request_header

Example: Asynchronous Conversations | Asynchronous Functions - C

Sets a string defining the request header name and value for the next request sent in the Conversation An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..

    int web_util_set_request_header (const char *Header, const char *Content);

Argument | Description
--- | ---
Header | The name of the user–defined header. Examples: "Accept", "Accept–Encoding"
Content | The value (data) associated with the user–defined header.

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

The following argument(s) can be parameterized using standard parameterization: Header, Content

## General Information

This is a utility function that can be called from callback routine Request Callback.

See Also

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: