• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12</reply>
13
14# Client-side
15<client>
16<server>
17http
18</server>
19# tool is what to use instead of 'curl'
20<tool>
21lib513
22</tool>
23
24 <name>
25send HTTP POST using read callback that returns CURL_READFUNC_ABORT
26 </name>
27# the 1s post-command delay helps to prevent a spurious failure on s390
28 <command delay="1">
29http://%HOSTIP:%HTTPPORT/513
30</command>
31</client>
32
33#
34# Verify data after the test has been "shot"
35<verify>
36<protocol>
37POST /513 HTTP/1.1
38Host: %HOSTIP:%HTTPPORT
39Accept: */*
40Content-Length: 1
41Content-Type: application/x-www-form-urlencoded
42
43</protocol>
44# 42 - aborted by callback
45<errorcode>
4642
47</errorcode>
48</verify>
49</testcase>
50