• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP MIME
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK swsclose
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 3
18
19OK
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28# tool is what to use instead of 'curl'
29<tool>
30lib589
31</tool>
32
33 <name>
34make a HTTP MIME POST set to NULL
35 </name>
36 <command>
37http://%HOSTIP:%HTTPPORT/589
38</command>
39</client>
40
41#
42# Verify data after the test has been "shot"
43<verify>
44<strip>
45^User-Agent:.*
46</strip>
47<protocol>
48POST /589 HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50Accept: */*
51Content-Length: 0
52
53</protocol>
54</verify>
55</testcase>
56