web.utilSetRequestHeader

Sets a string defining the request header and value for the next request sent in the ConversationClosed 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..

Syntax

            
            web.utilSetRequestHeader ( <header>,<content> );
ArgumentDescription
headerThe new request header, for example, "Accept–Encoding".
contentThe request header value.

Return Values

Not applicable

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.

Concept Link IconSee Also

Example

web.utilSetRequestHeader("Accept-Encoding", "gzip");
 

See also: Example: Asynchronous Conversations