-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.EasyHandle.FailOnServerError
Andrew Lambert edited this page Dec 30, 2023
·
14 revisions
libcURL.EasyHandle.FailOnServerError
Dim FailOnServerError As BooleanWhen 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.
- 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.