• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6followlocation
7chunked Transfer-Encoding
8--write-out
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<data nocheck="yes">
16HTTP/1.1 302 OK swsbounce swsclose
17Date: Thu, 09 Nov 2010 14:49:00 GMT
18Content-Length: 8
19Connection: close
20Content-Type: text/plain
21Location: ./10900001
22
23monster
24</data>
25<data1 nocheck="yes">
26HTTP/1.1 200 OK
27Date: Thu, 09 Nov 2010 14:49:00 GMT
28Transfer-Encoding: chunked
29Connection: close
30Content-Type: text/plain; charset=us-ascii
31
320007
33bigger
340008
35monster
36
370
38
39</data1>
40
41</reply>
42
43#
44# Client-side
45<client>
46<server>
47http
48</server>
49 <name>
50HTTP GET --write-out with redirected fetch and chunked reply
51 </name>
52 <command>
53http://%HOSTIP:%HTTPPORT/1090 -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
54</command>
55</client>
56
57#
58# Verify data after the test has been "shot"
59<verify>
60<strip>
61^User-Agent:.*
62</strip>
63<protocol>
64GET /1090 HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66Accept: */*
67
68GET /10900001 HTTP/1.1
69Host: %HOSTIP:%HTTPPORT
70Accept: */*
71
72</protocol>
73
74<stdout>
75HTTP/1.1 302 OK swsbounce swsclose
76Date: Thu, 09 Nov 2010 14:49:00 GMT
77Content-Length: 8
78Connection: close
79Content-Type: text/plain
80Location: ./10900001
81
82HTTP/1.1 200 OK
83Date: Thu, 09 Nov 2010 14:49:00 GMT
84Transfer-Encoding: chunked
85Connection: close
86Content-Type: text/plain; charset=us-ascii
87
88bigger monster
892
901
9115
92http://%HOSTIP:%HTTPPORT/10900001
93text/plain; charset=us-ascii
94200
95</stdout>
96
97</verify>
98</testcase>
99