• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6followlocation
7--write-out
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15HTTP/1.1 302 OK swsbounce swsclose
16Date: Thu, 09 Nov 2010 14:49:00 GMT
17Content-Length: 8
18Connection: close
19Location: ./193
20
21monster
22</data>
23<data1 nocheck="yes">
24HTTP/1.1 200 OK
25Date: Thu, 09 Nov 2010 14:49:00 GMT
26Content-Length: 8
27Connection: close
28
29monster
30</data1>
31
32</reply>
33
34#
35# Client-side
36<client>
37<server>
38http
39</server>
40 <name>
41HTTP GET -w num_connects with redirected fetch (2 connects)
42 </name>
43 <command>
44http://%HOSTIP:%HTTPPORT/193 -w "%{num_connects}\n" -L
45</command>
46</client>
47
48#
49# Verify data after the test has been "shot"
50<verify>
51<strip>
52^User-Agent:.*
53</strip>
54<protocol>
55GET /193 HTTP/1.1
56Host: %HOSTIP:%HTTPPORT
57Accept: */*
58
59GET /193 HTTP/1.1
60Host: %HOSTIP:%HTTPPORT
61Accept: */*
62
63</protocol>
64
65<stdout>
66HTTP/1.1 302 OK swsbounce swsclose
67Date: Thu, 09 Nov 2010 14:49:00 GMT
68Content-Length: 8
69Connection: close
70Location: ./193
71
72HTTP/1.1 200 OK
73Date: Thu, 09 Nov 2010 14:49:00 GMT
74Content-Length: 8
75Connection: close
76
77monster
782
79</stdout>
80
81</verify>
82</testcase>
83