Commit 0678a51d authored by Patrick Monnerat's avatar Patrick Monnerat
Browse files

Allow test server to handle binary POSTs.

Tests 35, 544 545 added: binary data POSTs.
parent b7dd186d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6,6 +6,11 @@

                                  Changelog

Patrick M (25 October 2007)
- Fixed test server to allow null bytes in binary posts.
_ Added tests 35, 544 & 545 to check binary data posts, both static (in place)
  and dynamic (copied).

Daniel S (25 October 2007)
- Michal Marek fixed the test script to be able to use valgrind even when the
  lib is built shared with libtool.
+2 −1
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
 test706 test707 test350 test351 test352 test353 test289 test540 test354   \
 test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006    \
 test615 test1007 test541 test1010 test1011 test1012 test542 test543       \
 test536 test1008 test1009 test2000 test2001 test2002 test2003
 test536 test1008 test1009 test2000 test2001 test2002 test2003 test35      \
 test544 test545

filecheck:
	@mkdir test-place; \

tests/data/test35

0 → 100644
+743 B

File added.

No diff preview for this file type.

tests/data/test544

0 → 100644
+49 −0
Original line number Diff line number Diff line
<testcase>
#
# Server-side
<reply>
<data mode="text">
HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 3

OK
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
# tool is what to use instead of 'curl'
<tool>
lib544
</tool>

 <name>
HTTP POST text data using CURLOPT_COPYPOSTFIELDS
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/544
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol nonewline="yes">
POST /544 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
Content-Length: 4
Content-Type: application/x-www-form-urlencoded

This
</protocol>
</verify>
</testcase>

tests/data/test545

0 → 100644
+748 B

File added.

No diff preview for this file type.

Loading