diff --git a/tests/data/test1188 b/tests/data/test1188
index 8912b391a9..6078ee4834 100644
--- a/tests/data/test1188
+++ b/tests/data/test1188
@@ -9,12 +9,11 @@ HTTP GET
# Server-side
-
-HTTP/1.1 200 OK
-Content-Length: 3
+
+HTTP/1.1 404 Not Found
+Content-Length: 0
Connection: close
-hi
@@ -27,7 +26,7 @@ http
--write-out with %{onerror} and %{urlnum} to stderr
-http://non-existing-host.haxx.se:%NOLISTENPORT/we/want/our/1188 http://%HOSTIP:%HTTPPORT/we/want/our/1188 -w '%{onerror}%{stderr}%{urlnum} says %{exitcode} %{errormsg}\n' -s
+-f -s -w '%{onerror}%{stderr}%{urlnum} says %{exitcode} %{errormsg}\n' http://%HOSTIP:%HTTPPORT/we/want/our/1188 http://%HOSTIP:%HTTPPORT/we/want/our/1188
@@ -39,9 +38,19 @@ Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
+GET /we/want/our/1188 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+User-Agent: curl/%VERSION
+Accept: */*
+
-0 says 6 Could not resolve host: non-existing-host.haxx.se
+0 says 22 The requested URL returned error: 404
+1 says 22 The requested URL returned error: 404
+# 22 is CURLE_HTTP_RETURNED_ERROR
+
+22
+