aboutsummaryrefslogtreecommitdiff
path: root/tests/curl/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/curl/driver.cxx')
-rw-r--r--tests/curl/driver.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/curl/driver.cxx b/tests/curl/driver.cxx
index 4cf1815..bd12c29 100644
--- a/tests/curl/driver.cxx
+++ b/tests/curl/driver.cxx
@@ -105,6 +105,19 @@ http ()
assert (!c.wait ());
}
+ // POST from stream without --fail.
+ //
+ {
+ curl c (p, path ("-"), nullfd, 2,
+ curl::post,
+ curl::flags::no_fail,
+ u + "/bogus");
+
+ c.out << "bogus" << endl;
+ c.out.close ();
+ assert (c.wait ());
+ }
+
// POST from /dev/null.
//
{