aboutsummaryrefslogtreecommitdiff
path: root/tests/curl/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-02-23 18:50:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-02-26 16:38:49 +0300
commita1ea72d719b63a4d2b6421ce2e53b7e3ab12a8a1 (patch)
tree8c5e9e1c044586cee0cc16dd66e78f70b4d33c3f /tests/curl/driver.cxx
parent14049ee7c5880b9e33a3e295d19ed6b36edab567 (diff)
Add curl constructors which allow to adjust curl command line
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.
//
{