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

C Language

int web_cleanup_auto_headers( );

Java Language

int object.cleanup_auto_headers( ); 
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 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.