summaryrefslogtreecommitdiff
path: root/tests/libtest/lib1514.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-23 23:17:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-26 15:11:04 +0200
commit1529838a14e72fc7b1f2bcb561ea1b1a785975e4 (patch)
tree0909691b6fe6d8aa2a91871c87f0c5199b7e3e3a /tests/libtest/lib1514.c
parent989e6dffc583118e6b582be37dc193ebcbf2d5aa (diff)
downloadcurl-1529838a14e72fc7b1f2bcb561ea1b1a785975e4.tar.gz
test1539: do a HTTP 1.0 POST without a set size (fails)
Attempt to reproduce #5593. Test case 1514 is very similar but uses HTTP/1.1 and thus switches to chunked. Closes #5595
Diffstat (limited to 'tests/libtest/lib1514.c')
-rw-r--r--tests/libtest/lib1514.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/lib1514.c b/tests/libtest/lib1514.c
index d01a5d4fb..dd84d109f 100644
--- a/tests/libtest/lib1514.c
+++ b/tests/libtest/lib1514.c
@@ -68,6 +68,10 @@ int test(char *URL)
/* Purposely omit to set CURLOPT_POSTFIELDSIZE */
easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
easy_setopt(curl, CURLOPT_READDATA, &pooh);
+#ifdef LIB1539
+ /* speak HTTP 1.0 - no chunked! */
+ easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
+#endif
result = curl_easy_perform(curl);