From 0678a51d3b8be8b24e475929fae11b95d2258da4 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 25 Oct 2007 19:40:05 +0000 Subject: Allow test server to handle binary POSTs. Tests 35, 544 545 added: binary data POSTs. --- tests/data/test544 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/data/test544 (limited to 'tests/data/test544') diff --git a/tests/data/test544 b/tests/data/test544 new file mode 100644 index 000000000..2fa4edb1b --- /dev/null +++ b/tests/data/test544 @@ -0,0 +1,49 @@ + +# +# Server-side + + +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 3 + +OK + + + +# Client-side + + +http + +# tool is what to use instead of 'curl' + +lib544 + + + +HTTP POST text data using CURLOPT_COPYPOSTFIELDS + + +http://%HOSTIP:%HTTPPORT/544 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +POST /544 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +Content-Length: 4 +Content-Type: application/x-www-form-urlencoded + +This + + + -- cgit v1.2.3