xref: /curl/tests/data/test1164 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12# perl -e 'print "swsclose" . "\0" x 200;' | base64
13# 'swsclose' is there to force server to close after send
14<data nocheck="yes" base64="yes">
15c3dzY2xvc2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
16AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
17AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
18AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
19</data>
20</reply>
21
22#
23# Client-side
24<client>
25# hyper doesn't support HTTP/0.9
26<features>
27!hyper
28</features>
29<server>
30http
31</server>
32<name>
33HTTP/0.9 GET and all zeroes
34</name>
35 <command option="force-output">
36http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%{size_download}\n' --http0.9
37</command>
38</client>
39
40#
41# Verify data after the test has been "shot"
42<verify>
43<protocol>
44GET /%TESTNUMBER HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: curl/%VERSION
47Accept: */*
48
49</protocol>
50<stdout mode="text">
51208
52</stdout>
53</verify>
54</testcase>
55