From 379efd62aa98a4e7d0a406c473530f93e3df28f5 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 1 Jun 2012 05:48:26 +0200 Subject: tests 1334 to 1345: several -O -J -i -D combinations with HTTP protocol --- tests/data/Makefile.am | 3 +- tests/data/test1334 | 76 ++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1335 | 73 ++++++++++++++++++++++++++++++++++++++++++ tests/data/test1336 | 78 +++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1337 | 75 +++++++++++++++++++++++++++++++++++++++++++ tests/data/test1338 | 78 +++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1339 | 75 +++++++++++++++++++++++++++++++++++++++++++ tests/data/test1340 | 80 ++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1341 | 77 ++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1342 | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1343 | 80 ++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1344 | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1345 | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 13 files changed, 946 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1334 create mode 100644 tests/data/test1335 create mode 100644 tests/data/test1336 create mode 100644 tests/data/test1337 create mode 100644 tests/data/test1338 create mode 100644 tests/data/test1339 create mode 100644 tests/data/test1340 create mode 100644 tests/data/test1341 create mode 100644 tests/data/test1342 create mode 100644 tests/data/test1343 create mode 100644 tests/data/test1344 create mode 100644 tests/data/test1345 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 8d9199566..af3eeaa11 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -83,7 +83,8 @@ test1300 test1301 test1302 test1303 test1304 test1305 \ test1306 test1307 test1308 test1309 test1310 test1311 test1312 test1313 \ test1314 test1315 test1316 test1317 test1318 test1319 test1320 test1321 \ test1322 test1323 test1324 test1325 test1326 test1327 test1328 test1329 \ -test1331 test1332 test1333 \ +test1331 test1332 test1333 test1334 test1335 test1336 test1337 test1338 \ +test1339 test1340 test1341 test1342 test1343 test1344 test1345 \ test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \ test2000 test2001 test2002 test2003 test2004 diff --git a/tests/data/test1334 b/tests/data/test1334 new file mode 100644 index 000000000..c4e4744e5 --- /dev/null +++ b/tests/data/test1334 @@ -0,0 +1,76 @@ + + + +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 + +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 without Content-Disposition, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1334 -O -D log/heads1334 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1334 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + + + + diff --git a/tests/data/test1335 b/tests/data/test1335 new file mode 100644 index 000000000..d8bc01051 --- /dev/null +++ b/tests/data/test1335 @@ -0,0 +1,73 @@ + + + +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 + +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 without Content-Disposition, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1335 -O -D - + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1335 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + diff --git a/tests/data/test1336 b/tests/data/test1336 new file mode 100644 index 000000000..2b63a63b8 --- /dev/null +++ b/tests/data/test1336 @@ -0,0 +1,78 @@ + + + +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=name1336; 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 and Content-Disposition, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1336 -O -D log/heads1336 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1336 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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=name1336; charset=funny; option=strange + + + + + + + + diff --git a/tests/data/test1337 b/tests/data/test1337 new file mode 100644 index 000000000..d79f7cf6d --- /dev/null +++ b/tests/data/test1337 @@ -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=name1337; 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 and Content-Disposition, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1337 -O -D - + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1337 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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=name1337; charset=funny; option=strange + + + + + diff --git a/tests/data/test1338 b/tests/data/test1338 new file mode 100644 index 000000000..c6b4c56cd --- /dev/null +++ b/tests/data/test1338 @@ -0,0 +1,78 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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 + +12345 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -O and -J output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET with -O -J without Content-Disposition, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1338 -J -O -D log/heads1338 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1338 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + +curl: Saved to filename '%PWD/log/1338' + + + + diff --git a/tests/data/test1339 b/tests/data/test1339 new file mode 100644 index 000000000..713770018 --- /dev/null +++ b/tests/data/test1339 @@ -0,0 +1,75 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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 + +12345 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -O and -J output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET with -O -J without Content-Disposition, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1339 -J -O -D - + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1339 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + +curl: Saved to filename '%PWD/log/1339' + + + + diff --git a/tests/data/test1340 b/tests/data/test1340 new file mode 100644 index 000000000..5153889f6 --- /dev/null +++ b/tests/data/test1340 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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=name1340; charset=funny; option=strange + +12345 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -O and -J output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET with -O -J and Content-Disposition, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1340 -J -O -D log/heads1340 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1340 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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=name1340; charset=funny; option=strange + + + + +curl: Saved to filename '%PWD/log/name1340' + + + + diff --git a/tests/data/test1341 b/tests/data/test1341 new file mode 100644 index 000000000..e12ee3143 --- /dev/null +++ b/tests/data/test1341 @@ -0,0 +1,77 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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=name1341; charset=funny; option=strange + +12345 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -O and -J output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET with -O -J and Content-Disposition, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1341 -J -O -D - + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1341 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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=name1341; charset=funny; option=strange + +curl: Saved to filename '%PWD/log/name1341' + + + + diff --git a/tests/data/test1342 b/tests/data/test1342 new file mode 100644 index 000000000..0f1ee7771 --- /dev/null +++ b/tests/data/test1342 @@ -0,0 +1,83 @@ + + + +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 + +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 without Content-Disposition, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1342 -i -O -D log/heads1342 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1342 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 + +12345 + + + +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 + + + + + + + + diff --git a/tests/data/test1343 b/tests/data/test1343 new file mode 100644 index 000000000..cff7c8253 --- /dev/null +++ b/tests/data/test1343 @@ -0,0 +1,80 @@ + + + +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 + +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 without Content-Disposition, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1343 -i -O -D - + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1343 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 + +12345 + + + +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 + + + + + diff --git a/tests/data/test1344 b/tests/data/test1344 new file mode 100644 index 000000000..1ceccd813 --- /dev/null +++ b/tests/data/test1344 @@ -0,0 +1,86 @@ + + + +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=name1344; 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, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1344 -i -O -D log/heads1344 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1344 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=name1344; charset=funny; option=strange + +12345 + + + +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=name1344; charset=funny; option=strange + + + + + + + + diff --git a/tests/data/test1345 b/tests/data/test1345 new file mode 100644 index 000000000..5c6c8492b --- /dev/null +++ b/tests/data/test1345 @@ -0,0 +1,83 @@ + + + +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=name1345; 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, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1345 -i -O -D - + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1345 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=name1345; charset=funny; option=strange + +12345 + + + +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=name1345; charset=funny; option=strange + + + + + -- cgit v1.2.3