aboutsummaryrefslogtreecommitdiff
path: root/tests/curl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/curl')
-rw-r--r--tests/curl/driver.cxx7
-rw-r--r--tests/curl/testscript3
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/curl/driver.cxx b/tests/curl/driver.cxx
index 72faf52..4cf1815 100644
--- a/tests/curl/driver.cxx
+++ b/tests/curl/driver.cxx
@@ -104,6 +104,13 @@ http ()
c.out.close ();
assert (!c.wait ());
}
+
+ // POST from /dev/null.
+ //
+ {
+ curl c (p, nullfd, 1, 2, curl::post, u + "/bogus");
+ assert (!c.wait ());
+ }
}
int
diff --git a/tests/curl/testscript b/tests/curl/testscript
index 453c09a..d26a39c 100644
--- a/tests/curl/testscript
+++ b/tests/curl/testscript
@@ -52,5 +52,8 @@ sudo /usr/sbin/in.tftpd \
curl -s -S --fail --location --data-binary @- https://build2.org/bogus
%curl: \(22\) The requested URL returned error: 404( Not Found)?%
+
+ curl -s -S --fail --location https://build2.org/bogus
+ %curl: \(22\) The requested URL returned error: 404( Not Found)?%
EOE
}