xref: /curl/tests/data/test1210 (revision e7a021e1)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6-J
7</keywords>
8</info>
9
10#
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Length: 6
17Connection: close
18Content-Type: text/html
19
2012345
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27# this relies on the debug feature to allow us to set directory to store the
28# -O output in, using the CURL_TESTDIR variable
29<features>
30debug
31</features>
32<server>
33http
34</server>
35<name>
36HTTP GET with -J without Content-Disposition
37</name>
38<setenv>
39CURL_TESTDIR=%LOGDIR
40</setenv>
41<command option="no-output,no-include">
42http://%HOSTIP:%HTTPPORT/%TESTNUMBER?junk -J -O
43</command>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<protocol>
50GET /%TESTNUMBER?junk HTTP/1.1
51Host: %HOSTIP:%HTTPPORT
52User-Agent: curl/%VERSION
53Accept: */*
54
55</protocol>
56<file name="%LOGDIR/%TESTNUMBER">
5712345
58</file>
59
60</verify>
61</testcase>
62