• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9<reply>
10<data nocheck="yes">
11HTTP/1.1 1234 OK
12Date: Thu, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
15ETag: "21025-dc7-39462498"
16Accept-Ranges: bytes
17Content-Length: 6
18Connection: close
19Content-Type: text/html
20Funny-head: yesyes
21
22-foo-
23</data>
24</reply>
25
26#
27# Client-side
28<client>
29<server>
30http
31</server>
32
33<name>
34HTTP GET with 4-digit reponse code
35 </name>
36 <command>
37http://%HOSTIP:%HTTPPORT/1429 --write-out '%{response_code}'
38</command>
39</client>
40
41#
42# Verify data after the test has been "shot"
43<verify>
44<stdout nonewline="yes">
45HTTP/1.1 1234 OK
46Date: Thu, 09 Nov 2010 14:49:00 GMT
47Server: test-server/fake
48Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
49ETag: "21025-dc7-39462498"
50Accept-Ranges: bytes
51Content-Length: 6
52Connection: close
53Content-Type: text/html
54Funny-head: yesyes
55
56-foo-
571234
58</stdout>
59<strip>
60^User-Agent:.*
61</strip>
62<protocol>
63GET /1429 HTTP/1.1
64Host: %HOSTIP:%HTTPPORT
65Accept: */*
66
67</protocol>
68</verify>
69</testcase>
70