2007-01-23 03:25:56 +01:00
|
|
|
<testcase>
|
2003-10-07 16:43:48 +02:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2005-06-03 16:06:03 +02:00
|
|
|
<data mode="text">
|
2003-10-07 16:43:48 +02:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
|
|
|
lib508
|
|
|
|
</tool>
|
|
|
|
|
|
|
|
<name>
|
|
|
|
send HTTP POST using read callback
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 10:08:38 +02:00
|
|
|
http://%HOSTIP:%HTTPPORT/508
|
2003-10-07 16:43:48 +02:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
POST /508 HTTP/1.1
|
2007-09-14 21:32:31 +02:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-02-09 13:46:41 +01:00
|
|
|
Accept: */*
|
2003-10-07 16:43:48 +02:00
|
|
|
Content-Length: 45
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
this is what we post to the silly web server
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 03:25:56 +01:00
|
|
|
</testcase>
|