Skip to content

libcURL.EasyHandle.FailOnServerError

Andrew Lambert edited this page Sep 29, 2021 · 14 revisions

libcURL.EasyHandle.FailOnServerError

Property Declaration

 Dim FailOnServerError As Boolean

Remarks

Gets 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). Refer to the ErrorBuffer for additional 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.

See also

Clone this wiki locally