diff --git a/tests/io_test.cpp b/tests/io_test.cpp index e8b1c5d..7caaa6f 100644 --- a/tests/io_test.cpp +++ b/tests/io_test.cpp @@ -47,6 +47,14 @@ int main() { assert(output.str()=="A string"); } + { + stringstream output; + stringstream content("A string"); + auto r=client.request("POST", "/string", content); + output << r->content.rdbuf(); + assert(output.str()=="A string"); + } + { stringstream output; auto r=client.request("GET", "/info", "", {{"Test Parameter", "test value"}});