This function sets the CURLOPT_CONNECTTIMEOUT option value to the number of seconds specified. This value is the maximum amount of time in seconds that is allowed to make the connection to the server. This value is a portion of the time specified by CURLOPT_TIMEOUT, so this value should be set at less than the value of CURLOPT_TIMEOUT. See the HttpSetTimeout function for more information.
CALL "HttpSetConnectTimeout” USING timeout-in-seconds GIVING response-status.
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.
A status code that, if nonzero, means the request encountered an error. You can get the string representation of the error by calling NetGetError.