Share this page

# web_set_max_retries

Sets the maximum number of retries of an Action step.

## C Language

    int web_set_max_retries( const char *MaxRetries );

Replay Functions

## Java Language

    int object.set_max_retries( String MaxRetries );

Replay Functions | Java Syntax

Argument | Description
--- | ---
object | An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.
MaxRetries | A pointer to the null-terminated string indicating the maximum number of retries. Enter 0 for no retries.

## 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: MaxRetries

## General Information

The web_set_max_retries function sets the maximum number of retries for a Action Functions. When an error occurs, retry is attempted for HTTP response statuses 500-599, and for network API errors (HttpSendRequest and so forth). Retry is not attempted for timeouts or function argument errors.

This function is supported for all web scripts.

## C Example

In the following example, the web_set_max_retries function sets the maximum number of retries to five.

    web_set_max_retries ("5");

## Java Example

In the following example, the set_max_retries function sets the maximum number of retries to five.

    web.set_max_retries ("5");

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: