From 59c063dfd38972e06a7f3a0b8f94860a67acdc96 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 11 Nov 2004 23:11:04 +0000 Subject: Fix behaviour when passing NULL to CURLOPT_POSTFIELDS and CURLOPT_HTTPPOST. --- tests/data/test516 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tests/data/test516 (limited to 'tests/data/test516') diff --git a/tests/data/test516 b/tests/data/test516 new file mode 100644 index 000000000..568e46bb5 --- /dev/null +++ b/tests/data/test516 @@ -0,0 +1,45 @@ +# +# Server-side + + +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake + +OK + + + +# Client-side + + +http + +# tool is what to use instead of 'curl' + +lib516 + + + +make a HTTPPOST set to NULL + + +http://%HOSTIP:%HTTPPORT/516 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +POST /516 HTTP/1.1 +Host: 127.0.0.1:%HTTPPORT +Pragma: no-cache +Accept: */* +Content-Length: 0 + + + -- cgit v1.2.3