| 1 |
# |
| 2 |
# Server-side |
| 3 |
<reply> |
| 4 |
</reply> |
| 5 |
|
| 6 |
# Client-side |
| 7 |
<client> |
| 8 |
<server> |
| 9 |
http |
| 10 |
</server> |
| 11 |
# tool is what to use instead of 'curl' |
| 12 |
<tool> |
| 13 |
lib513 |
| 14 |
</tool> |
| 15 |
|
| 16 |
<name> |
| 17 |
send HTTP POST using read callback that returns CURL_READFUNC_ABORT |
| 18 |
</name> |
| 19 |
<command> |
| 20 |
http://%HOSTIP:%HTTPPORT/513 |
| 21 |
</command> |
| 22 |
</client> |
| 23 |
|
| 24 |
# |
| 25 |
# Verify data after the test has been "shot" |
| 26 |
<verify> |
| 27 |
<protocol> |
| 28 |
POST /513 HTTP/1.1 |
| 29 |
Host: 127.0.0.1:%HTTPPORT |
| 30 |
Accept: */* |
| 31 |
Content-Length: 1 |
| 32 |
Content-Type: application/x-www-form-urlencoded |
| 33 |
Expect: 100-continue |
| 34 |
|
| 35 |
</protocol> |
| 36 |
# 42 - aborted by callback |
| 37 |
<errorcode> |
| 38 |
42 |
| 39 |
</errorcode> |
| 40 |
</verify> |