com.HTTPRequest.setAutoReply

Defines the auto reply option for response methods.

Syntax

setAutoReply(
   val INTEGER )
  1. val defines auto-reply when TRUE.

Usage

The setAutoReply() method defines whether getResponse() or getAsyncResponse() will automatically perform another HTTP GET request if response contains HTTP Authentication, Proxy Authentication or HTTP redirect data.

Available for GET method and the HTTP HEAD method.

The default is TRUE.

Important: On iOS devices, setAutoReply() is ignored for redirection in synchronous requests: The iOS HTTP stack does not allow to set an auto reply option when doing synchronous requests.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).