HttpSetTimeout

This function sets the CURLOPT_TIMEOUT option value to the number of seconds specified. This value is the maximum amount of time in seconds that is allowed for the request to complete. The CURLOPT_CONNECTTIMEOUT value is a portion of the time specified by CURLOPT_TIMEOUT, so this value should be set greater than the value of CURLOPT_CONNECTTIMEOUT. See the HttpSetConnectTimeout function for more information.

Usage

CALL "HttpSetTimeout” USING
         timeout-in-seconds 
         GIVING 
         response-status.

Parameters

timeout-in-seconds

A numeric item specifying the maximum amount of time in seconds allowed for a request to complete. When the specified number of seconds expires, then an outstanding request is terminated with an error.

response-status

A status code that, if nonzero, means the request encountered an error. You can get the string representation of the error by calling NetGetError

.