]> git.ipfire.org Git - thirdparty/curl.git/commit
test1188: Check for --fail HTTP status
authorJay Satiro <raysatiro@yahoo.com>
Fri, 19 Feb 2021 23:30:18 +0000 (18:30 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 20 Feb 2021 19:41:13 +0000 (14:41 -0500)
commit3d954e4e2638fc29a952ebaf1ef235fa2e98ee61
treef7b48db443418ec977fc8448075487229f85b260
parenteb36c03e83ecc110bb14480fca911ef45621f24a
test1188: Check for --fail HTTP status

- Change the test to check for curl error on HTTP 404 Not Found.

test1188 tests "--write-out with %{onerror} and %{urlnum} to stderr".
Prior to this change it did that by specifying a non-existent host which
would cause an error. ISPs may hijack DNS and resolve non-existent hosts
so the test would not work if that was the case.

Ref: https://en.wikipedia.org/wiki/DNS_hijacking#Manipulation_by_ISPs
Ref: https://github.com/curl/curl/issues/6621
Ref: https://github.com/curl/curl/pull/6623

Closes https://github.com/curl/curl/pull/6637
tests/data/test1188