Share this page

# web_cleanup_auto_headers

Stops scripts from adding user–defined headers to subsequent HTTP requests.

## C Language

    int web_cleanup_auto_headers( );

Header Functions

## Java Language

    int object.cleanup_auto_headers( );

Alphabetical Listing of Web Functions - Java | Java Syntax

Argument | Description
--- | ---
object | An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.

## Return Values

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

## Parameterization

Parameterization is not applicable to this function.

## General Information

The web_cleanup_auto_headers function is a service function that disables adding user–defined headers to subsequent HTTP requests.

Web scripts automatically send a header with each HTTP request they submit. You can use web_add_auto_header to add a user–defined header to the standard header of each subsequent HTTP request. web_cleanup_auto_headers cancels adding the header.

This function is supported for all web scripts.

## C Example

The following example stops scripts from adding user-defined headers to subsequent HTTP requests.

    web_cleanup_auto_headers();

## Java Example

The following example stops scripts from adding user-defined headers to subsequent HTTP requests.

    web.cleanup_auto_headers();

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