Can I make cURL fail with an exitCode different than 0 if the HTTP status code is not 200?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001
--
Chapters
00:00 Question
00:48 Accepted answer (Score 68)
01:31 Answer 2 (Score 511)
02:29 Answer 3 (Score 134)
02:55 Answer 4 (Score 96)
03:22 Thank you
--
Full question
https://superuser.com/questions/590099/c...
Accepted answer links:
[curl --fail-with-body]: https://superuser.com/a/1626376/215321
Answer 2 links:
[man curl]: http://curl.haxx.se/docs/manpage.html
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#curl #stdout #exitcode #httpstatuscode500
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001
--
Chapters
00:00 Question
00:48 Accepted answer (Score 68)
01:31 Answer 2 (Score 511)
02:29 Answer 3 (Score 134)
02:55 Answer 4 (Score 96)
03:22 Thank you
--
Full question
https://superuser.com/questions/590099/c...
Accepted answer links:
[curl --fail-with-body]: https://superuser.com/a/1626376/215321
Answer 2 links:
[man curl]: http://curl.haxx.se/docs/manpage.html
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#curl #stdout #exitcode #httpstatuscode500
#avk47