Share this page

# Example: web_add_header

In the following examples, web_add_header is used to add headers to subsequent HTTP requests:

    web_add_header("User-Agent", "ABC Browser 1.0"); // informs the server that the name of the custom browser application that the client is using to send the request is ABC Browser 1.0
    web_add_header("Accept", "text/xml/html"); // *.* is the default sent if no Accept header is specified.
    web_add_header("userid", "sam");  // Add a custom header for application specific login logic.
    web_add_header("pwd", "****");    // Add a custom header for application specific login logic.

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: