• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 FORM
7 </keywords>
8 </info>
9 
10 #
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.1 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake swsclose
17 Connection: close
18 Content-Type: text/html
19 
20 hello
21 </data>
22 <datacheck>
23 HTTP/1.1 200 OK
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
25 Server: test-server/fake swsclose
26 Connection: close
27 Content-Type: text/html
28 
29 hello
30 </datacheck>
31 </reply>
32 
33 # Client-side
34 <client>
35 <server>
36 http
37 </server>
38 # tool is what to use instead of 'curl'
39 <tool>
40 lib672
41 </tool>
42 
43  <name>
44 Request pause from form read callback: multi
45  </name>
46  <command>
47 http://%HOSTIP:%HTTPPORT/672
48 </command>
49 </client>
50 
51 #
52 # Verify data after the test has been "shot"
53 <verify>
54 <strippart>
55 s/^--------------------------[a-z0-9]*/------------------------------/
56 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
57 </strippart>
58 <protocol>
59 POST /672 HTTP/1.1
60 Host: %HOSTIP:%HTTPPORT
61 Accept: */*
62 Content-Length: 142
63 Content-Type: multipart/form-data; boundary=----------------------------
64 
65 ------------------------------
66 Content-Disposition: form-data; name="field"
67 
68 AB
69 --------------------------------
70 </protocol>
71 </verify>
72 </testcase>
73