libcURL.EasyHandle.FailOnServerError - charonn0/RB-libcURL GitHub Wiki
libcURL.EasyHandle.FailOnServerError
Property Declaration
Dim FailOnServerError As Boolean
Remarks
When this property is set to True, transfers will be aborted if the server responds with a status code that is >=400 (for example, 404 Not Found). Any downloaded data (such as an HTML error page) is discarded and the connection is terminated.
The libcURL error code for such a failed transfer will be CURLE_HTTP_RETURNED_ERROR (22). You may retrieve the HTTP status code by passing libcURL.Info.RESPONSE_CODE as the Infotype parameter to the GetInfo method. For extended error details refer to the ErrorBuffer property.
This property is False by default.
See also
- CURLOPT_FAILONERROR in the libcURL documentation.