xref: /curl/tests/data/test473 (revision 85efbb92)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8#
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 301 funky chunky!
13Server: fakeit/0.9 fakeitbad/1.0
14Location: /redirected
15Transfer-Encoding: chunked
16Trailer: chunky-trailer
17Connection: mooo
18ETag: W/"asdf"
19
2040
21aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2230
23bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
2421;heresatest=moooo
25cccccccccccccccccccccccccccccccc
26
270
28chunky-trailer: header data
29
30</data>
31</reply>
32
33#
34# Client-side
35<client>
36<server>
37http
38</server>
39<name>
40Check if --etag-save saved correct etag to a file on 301
41</name>
42<command>
43http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save %LOGDIR/etag%TESTNUMBER
44</command>
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50<protocol>
51GET /%TESTNUMBER HTTP/1.1
52Host: %HOSTIP:%HTTPPORT
53User-Agent: curl/%VERSION
54Accept: */*
55
56</protocol>
57<file name="%LOGDIR/etag%TESTNUMBER">
58W/"asdf"
59</file>
60</verify>
61
62</testcase>
63