-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.EasyHandle.FailOnServerError
libcURL.EasyHandle.FailOnServerError
Dim FailOnServerError As BooleanGets and sets whether HTTP error codes constitute a failure condition. The libcURL error code for such a failed transfer will be CURLE_HTTP_RETURNED_ERROR (22). Use libcURL.Info.RESPONSE_CODE as the Infotype parameter to the GetInfo method to retrieve the HTTP status code. Refer to the ErrorBuffer for extended error details.
When this is set to True, the Perform method will return False on HTTP requests that return a status code that is >=400. In addition, any downloaded data (such as an HTML error page) is discarded and the connection is terminated.
This property is False by default, but be aware that the cURLClient class initializes it to True.
- CURLOPT_FAILONERROR in the libcURL documentation.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.