xref: /curl/tests/data/test1492 (revision b0c82239)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6-J
7--show-headers
8</keywords>
9</info>
10
11#
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 6
18Connection: close
19Content-Jisposition: inline; filename="name%TESTNUMBER"
20Content-Type: text/html
21
2212345
23</data>
24</reply>
25
26#
27# Client-side
28<client>
29<server>
30http
31</server>
32<name>
33HTTP GET with -J + --show-headers but no Content-Disposition:
34</name>
35<command option="no-output,no-include">
36http://%HOSTIP:%HTTPPORT/junk%TESTNUMBER -J -O --show-headers --output-dir %LOGDIR
37</command>
38</client>
39
40#
41# Verify data after the test has been "shot"
42<verify>
43<protocol>
44GET /junk%TESTNUMBER HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: curl/%VERSION
47Accept: */*
48
49</protocol>
50<file name="%LOGDIR/junk%TESTNUMBER">
51HTTP/1.1 200 OK
52Date: Tue, 09 Nov 2010 14:49:00 GMT
53Server: test-server/fake
54Content-Length: 6
55Connection: close
56Content-Jisposition: inline; filename="name%TESTNUMBER"
57Content-Type: text/html
58
5912345
60</file>
61
62</verify>
63</testcase>
64