xref: /curl/tests/data/test3015 (revision 68c35861)
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
17Date: Sun, 13 Sep 2020 15:00 GMT
18Content-Length: 8
19Connection: close
20Content-Type: text/plain
21Location: ./%TESTNUMBER0001
22
23monster
24</data>
25<data1 nocheck="yes">
26HTTP/1.1 200 OK
27Date: Sun, 13 Sep 2020 15: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 -w num_headers with redirected fetch (2 connects)
51</name>
52<command>
53http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_headers}\n" -L -o%DEV_NULL
54</command>
55</client>
56
57#
58# Verify data after the test has been "shot"
59<verify>
60<protocol>
61GET /%TESTNUMBER HTTP/1.1
62Host: %HOSTIP:%HTTPPORT
63User-Agent: curl/%VERSION
64Accept: */*
65
66GET /%TESTNUMBER0001 HTTP/1.1
67Host: %HOSTIP:%HTTPPORT
68User-Agent: curl/%VERSION
69Accept: */*
70
71</protocol>
72
73<stdout mode="text">
744
75</stdout>
76
77</verify>
78</testcase>
79