• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP HEAD
6</keywords>
7</info>
8# Server-side
9<reply>
10<data>
11HTTP/1.1 200 OK
12Server: thebest/1.0
13Connection: close
14
15</data>
16</reply>
17
18# Client-side
19<client>
20<server>
21http
22</server>
23 <name>
24HTTP HEAD with Connection: close
25 </name>
26 <command>
27http://%HOSTIP:%HTTPPORT/want/14 -i --head
28</command>
29</client>
30
31# Verify data after the test has been "shot"
32<verify>
33<strip>
34^User-Agent:.*
35</strip>
36<protocol>
37HEAD /want/14 HTTP/1.1
38User-Agent: curl/7.4.2-pre4 (sparc-sun-solaris2.7) libcurl 7.4.2-pre4
39Host: %HOSTIP:%HTTPPORT
40Accept: */*
41
42</protocol>
43</verify>
44</testcase>
45