From 628e62a9660e3853a1ab4f26ad37547b9f10f160 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 4 Jun 2012 18:54:24 +0200 Subject: tests 1346 to 1347: several -O -J -i -D combinations with HTTP protocol --- tests/data/test1347 | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 tests/data/test1347 (limited to 'tests/data/test1347') diff --git a/tests/data/test1347 b/tests/data/test1347 new file mode 100644 index 000000000..3b0956f97 --- /dev/null +++ b/tests/data/test1347 @@ -0,0 +1,75 @@ + + + +HTTP +HTTP GET + + + +# + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1347; charset=funny; option=strange + +12345 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -O output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET with -O -i and Content-Disposition, without -D + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1347 -i -O + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1347 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1347; charset=funny; option=strange + +12345 + + + + + + + -- cgit v1.2.3