You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When HTTP servers fail to fulfill a request, they will often return an HTML page with the error information to the client. In situations like these, curl will simply send the content of the error page to stdout and exit with a zero exit code. While this may be fine at the command line, it can be quite problematic in scripts, since it may lead to false positives. 😱
Fortunately, we can tell curl to consider HTTP errors (4xx and 5xx) for what they are and exit with a non-zero status code by passing it the -f --fail option.
Cake.Curl should support that in the CurlSettings class.
The text was updated successfully, but these errors were encountered:
When HTTP servers fail to fulfill a request, they will often return an HTML page with the error information to the client. In situations like these, curl will simply send the content of the error page to stdout and exit with a zero exit code. While this may be fine at the command line, it can be quite problematic in scripts, since it may lead to false positives. 😱
Fortunately, we can tell curl to consider HTTP errors (4xx and 5xx) for what they are and exit with a non-zero status code by passing it the
-f --fail
option.Cake.Curl should support that in the
CurlSettings
class.The text was updated successfully, but these errors were encountered: