From 9ec06677017d6d6cad1efc08000ea792e9b457d8 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 10 Mar 2021 16:05:04 +0100 Subject: [PATCH] Add test scenario chunked-transfer-encoding-https Sponsored by: Privoxy project funds collected at SPI --- .../chunked-transfer-encoding.action | 5 ++ .../data/test1 | 65 ++++++++++++++ .../data/test10 | 83 +++++++++++++++++ .../data/test11 | 85 ++++++++++++++++++ .../data/test12 | 80 +++++++++++++++++ .../data/test13 | 80 +++++++++++++++++ .../data/test14 | 80 +++++++++++++++++ .../data/test15 | 80 +++++++++++++++++ .../data/test16 | 68 ++++++++++++++ .../data/test17 | 62 +++++++++++++ .../data/test18 | 62 +++++++++++++ .../data/test19 | 80 +++++++++++++++++ .../data/test2 | 77 ++++++++++++++++ .../data/test20 | 86 ++++++++++++++++++ .../data/test21 | 76 ++++++++++++++++ .../data/test22 | 64 ++++++++++++++ .../data/test3 | 77 ++++++++++++++++ .../data/test4 | 72 +++++++++++++++ .../data/test5 | 84 ++++++++++++++++++ .../data/test6 | 88 +++++++++++++++++++ .../data/test7 | 88 +++++++++++++++++++ .../data/test8 | 71 +++++++++++++++ .../data/test9 | 81 +++++++++++++++++ .../privoxy.conf | 27 ++++++ 24 files changed, 1721 insertions(+) create mode 100644 tests/cts/chunked-transfer-encoding-https/chunked-transfer-encoding.action create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test1 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test10 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test11 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test12 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test13 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test14 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test15 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test16 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test17 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test18 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test19 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test2 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test20 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test21 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test22 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test3 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test4 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test5 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test6 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test7 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test8 create mode 100644 tests/cts/chunked-transfer-encoding-https/data/test9 create mode 100644 tests/cts/chunked-transfer-encoding-https/privoxy.conf diff --git a/tests/cts/chunked-transfer-encoding-https/chunked-transfer-encoding.action b/tests/cts/chunked-transfer-encoding-https/chunked-transfer-encoding.action new file mode 100644 index 00000000..efb0b96e --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/chunked-transfer-encoding.action @@ -0,0 +1,5 @@ +{+https-inspection +ignore-certificate-errors} +/ + +{+filter{img-reorder}} +/chunked-transfer-encoding/ diff --git a/tests/cts/chunked-transfer-encoding-https/data/test1 b/tests/cts/chunked-transfer-encoding-https/data/test1 new file mode 100644 index 00000000..9c2331b5 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test1 @@ -0,0 +1,65 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +6 +AAAAA + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +AAAAA + + + + + +https + + +Chunked transfer encoding - One chunk delivered through https. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test10 b/tests/cts/chunked-transfer-encoding-https/data/test10 new file mode 100644 index 00000000..34515ac4 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test10 @@ -0,0 +1,83 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +Bogus data. + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +Bogus data. + + + + + +https + + +Chunked transfer encoding - Multiple chunks, bogus data instead of last chunk. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +18 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test11 b/tests/cts/chunked-transfer-encoding-https/data/test11 new file mode 100644 index 00000000..cbed307d --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test11 @@ -0,0 +1,85 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +100 +%repeat[1000 x D]% + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +100 +%repeat[1000 x D]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks, chunk at the end too big. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +56 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test12 b/tests/cts/chunked-transfer-encoding-https/data/test12 new file mode 100644 index 00000000..aa089ec6 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test12 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +100 +%repeat[255 x 0]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%repeat[255 x A]% +%repeat[255 x B]% +%repeat[255 x C]% +%repeat[255 x 0]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks, chunk at the end contains zeros but is valid + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test13 b/tests/cts/chunked-transfer-encoding-https/data/test13 new file mode 100644 index 00000000..1a545c0b --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test13 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +100 +%repeat[255 x %01]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%repeat[255 x A]% +%repeat[255 x B]% +%repeat[255 x C]% +%repeat[255 x %01]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks, chunk at the end contains binary ones and is valid + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test14 b/tests/cts/chunked-transfer-encoding-https/data/test14 new file mode 100644 index 00000000..71d0c094 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test14 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +100 +%repeat[255 x %hex[%00]hex%]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%repeat[255 x A]% +%repeat[255 x B]% +%repeat[255 x C]% +%repeat[255 x %hex[%00]hex%]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks, chunk at the end contains binary zeroes and is valid. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test15 b/tests/cts/chunked-transfer-encoding-https/data/test15 new file mode 100644 index 00000000..99163a01 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test15 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + +100 +%repeat[255 x %hex[%00]hex%]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%repeat[255 x A]% +%repeat[255 x B]% +%repeat[255 x C]% +%repeat[255 x %hex[%00]hex%]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks, chunk at the end contains binary zeroes and is valid. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test16 b/tests/cts/chunked-transfer-encoding-https/data/test16 new file mode 100644 index 00000000..95731bca --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test16 @@ -0,0 +1,68 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +2 +%hex[%00]hex% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%hex[%00]hex% + + + + + +https + + +Chunked transfer encoding - Single chunk with binary zeroes that is valid. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test17 b/tests/cts/chunked-transfer-encoding-https/data/test17 new file mode 100644 index 00000000..e78c6f03 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test17 @@ -0,0 +1,62 @@ + + + +HTTP +HTTP GET + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%hex[%FF%00%01]hex% + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%hex[%FF%00%01]hex% + + + + + +https + + +Binary data test. XXX: Not actually a chunked test. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test18 b/tests/cts/chunked-transfer-encoding-https/data/test18 new file mode 100644 index 00000000..12b4310f --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test18 @@ -0,0 +1,62 @@ + + + +HTTP +HTTP GET + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%hex[%00]hex%Blafasel + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%hex[%00]hex%Blafasel + + + + + +https + + +Binary zero test. XXX: Not actually a chunked-transfer-encoding test. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test19 b/tests/cts/chunked-transfer-encoding-https/data/test19 new file mode 100644 index 00000000..40ff92b8 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test19 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x %00]% + +100 +%repeat[255 x %00]% + +100 +%repeat[255 x %00]% + +100 +%repeat[255 x %00]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%repeat[255 x %00]% +%repeat[255 x %00]% +%repeat[255 x %00]% +%repeat[255 x %00]% + + + + + +https + + +Chunked transfer encoding - Multiple valid chunks with binary zeros. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test2 b/tests/cts/chunked-transfer-encoding-https/data/test2 new file mode 100644 index 00000000..4ec49b86 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test2 @@ -0,0 +1,77 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +6 +AAAAA + +100 +%repeat[255 x B]% + +1000 +%repeat[4095 x C]% + +10000 +%repeat[65535 x D]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +AAAAA +%repeat[255 x B]% +%repeat[4095 x C]% +%repeat[65535 x D]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks delivered through https. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test20 b/tests/cts/chunked-transfer-encoding-https/data/test20 new file mode 100644 index 00000000..5b933b98 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test20 @@ -0,0 +1,86 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 blafasel %hex[%00]hex% +%repeat[255 x C]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 blafasel %hex[%00]hex% +%repeat[255 x C]% + +0 + + + + + + +https + + +Chunked transfer encoding - Multiple chunks, invalid binary zero in chunk extension. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + +# XXX: Why does curl not detect this? + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test21 b/tests/cts/chunked-transfer-encoding-https/data/test21 new file mode 100644 index 00000000..91cc78c5 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test21 @@ -0,0 +1,76 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +12345 +%repeat[74564 x A]% + +67891 +%repeat[424080 x B]% + +31337 +%repeat[201526 x C]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +%repeat[74564 x A]% +%repeat[424080 x B]% +%repeat[201526 x C]% + + + + + +https + + +Chunked transfer encoding - Multiple largish chunks. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test22 b/tests/cts/chunked-transfer-encoding-https/data/test22 new file mode 100644 index 00000000..320fbf8d --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test22 @@ -0,0 +1,64 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + + + + + + +https + + +Chunked transfer encoding - Only last chunk, no actual data. + + +proxy + + +--insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test3 b/tests/cts/chunked-transfer-encoding-https/data/test3 new file mode 100644 index 00000000..c51b1f6b --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test3 @@ -0,0 +1,77 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +6 Oh noes +AAAAA + +100 there is +%repeat[255 x B]% + +1000 bogus data +%repeat[4095 x C]% + +10000 here +%repeat[65535 x D]% + +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +AAAAA +%repeat[255 x B]% +%repeat[4095 x C]% +%repeat[65535 x D]% + + + + + +https + + +Chunked transfer encoding - Multiple chunks with garbage after chunk-sizes deliverd through https. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test4 b/tests/cts/chunked-transfer-encoding-https/data/test4 new file mode 100644 index 00000000..5505caa8 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test4 @@ -0,0 +1,72 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +123 +This chunk is too small +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +123 +This chunk is too small +0 + + + + + + +https + + +Chunked transfer encoding - Single chunk that is too small delivered through https. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +18 + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test5 b/tests/cts/chunked-transfer-encoding-https/data/test5 new file mode 100644 index 00000000..a8818979 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test5 @@ -0,0 +1,84 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +3 +AA + +4 +BBB + +123 +This chunk is too small +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +3 +AA + +4 +BBB + +123 +This chunk is too small +0 + + + + + + +https + + +Chunked transfer encoding - Multiple small chunks, last one too small. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +18 + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test6 b/tests/cts/chunked-transfer-encoding-https/data/test6 new file mode 100644 index 00000000..c5a29aee --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test6 @@ -0,0 +1,88 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +3 +AA + +4 +BBB + +123 +This chunk is too small +4 +DDD +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +3 +AA + +4 +BBB + +123 +This chunk is too small +4 +DDD +0 + + + + + + +https + + +Chunked transfer encoding - Multiple small chunks, chunk in the middle too small. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +18 + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test7 b/tests/cts/chunked-transfer-encoding-https/data/test7 new file mode 100644 index 00000000..2a2dfb3f --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test7 @@ -0,0 +1,88 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +1000 +%repeat[4095 x B]% + +10000 +%repeat[65535 x C]% +123 +This chunk is too small +0 + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +1000 +%repeat[4095 x B]% + +10000 +%repeat[65535 x C]% +123 +This chunk is too small +0 + + + + + + +https + + +Chunked transfer encoding - Multiple chunks, some of them large, last chunk too small. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +56 + + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test8 b/tests/cts/chunked-transfer-encoding-https/data/test8 new file mode 100644 index 00000000..61df2c55 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test8 @@ -0,0 +1,71 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + + + + + + + +https + + +Chunked transfer encoding - One data chunk, last chunk missing. Delivered through https. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +56 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/data/test9 b/tests/cts/chunked-transfer-encoding-https/data/test9 new file mode 100644 index 00000000..88f64fbf --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/test9 @@ -0,0 +1,81 @@ + + + +HTTP +HTTP GET +chunked transfer encoding + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + + + + + + +HTTP/1.1 200 Connection established + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +Transfer-Encoding: chunked +X-Control: swsclose + +100 +%repeat[255 x A]% + +100 +%repeat[255 x B]% + +100 +%repeat[255 x C]% + + + + + + +https + + +Chunked transfer encoding - Multiple chunks, last chunk missing. + + +proxy + + +--insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER + + + + + +GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +User-Agent: curl/%VERSION +Accept: */* + + + +18 + + + diff --git a/tests/cts/chunked-transfer-encoding-https/privoxy.conf b/tests/cts/chunked-transfer-encoding-https/privoxy.conf new file mode 100644 index 00000000..47abfe68 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/privoxy.conf @@ -0,0 +1,27 @@ +listen-address 127.0.0.1:9119 + +ca-directory ../ca-directory +ca-cert-file privoxy-test-cacert.crt +ca-key-file privoxy-test-cakey.pem +ca-password blafasel +# We don't check certificate anyway +trusted-cas-file privoxy-test-cacert.crt + +certificate-directory ../certs + +debug 1 # Log the destination for each request Privoxy let through. See also debug 1024. +debug 2 # show each connection status +debug 4 # show tagging-related messages +debug 8 # show header parsing +debug 32 # debug force feature +debug 64 # debug regular expression filters +debug 128 # debug redirects +debug 256 # debug GIF de-animation +debug 512 # Common Log Format +debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why. +debug 4096 # Startup banner and warnings. +debug 8192 # Non-fatal errors + +filterfile ../../../default.filter +actionsfile ./chunked-transfer-encoding.action + -- 2.39.2