diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2014-11-18 09:47:48 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2014-11-18 09:47:48 +0000 |
commit | 73c832e4e140add6e148efa2e709bf588f2668bb (patch) | |
tree | 0a674100339662ced27f53eee136fe512d2d5b37 /cpan/HTTP-Tiny/corpus | |
parent | 111bb8ca0c2b570c8721e72da9675733b8f281b3 (diff) | |
download | perl-73c832e4e140add6e148efa2e709bf588f2668bb.tar.gz |
Update HTTP-Tiny to CPAN version 0.051
[DELTA]
0.051 2014-11-17 22:58:44-05:00 America/New_York
[FIXED]
- Checks for threads without loading threads.pm
Diffstat (limited to 'cpan/HTTP-Tiny/corpus')
66 files changed, 1667 insertions, 0 deletions
diff --git a/cpan/HTTP-Tiny/corpus/auth-01.txt b/cpan/HTTP-Tiny/corpus/auth-01.txt new file mode 100644 index 0000000000..e4a97c8435 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/auth-01.txt @@ -0,0 +1,18 @@ +url + http://foo:bar@example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Authorization: Basic Zm9vOmJhcg== + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/auth-02.txt b/cpan/HTTP-Tiny/corpus/auth-02.txt new file mode 100644 index 0000000000..9b9a0fa03a --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/auth-02.txt @@ -0,0 +1,18 @@ +url + http://Aladdin:open sesame@example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/auth-03.txt b/cpan/HTTP-Tiny/corpus/auth-03.txt new file mode 100644 index 0000000000..8852e9ae04 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/auth-03.txt @@ -0,0 +1,36 @@ +url + http://foo:bar@example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index2.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Authorization: Basic Zm9vOmJhcg== + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/auth-04.txt b/cpan/HTTP-Tiny/corpus/auth-04.txt new file mode 100644 index 0000000000..2c832a0b58 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/auth-04.txt @@ -0,0 +1,18 @@ +url + http://rjbs%40cpan.org:password@example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Authorization: Basic cmpic0BjcGFuLm9yZzpwYXNzd29yZA== + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/auth-05.txt b/cpan/HTTP-Tiny/corpus/auth-05.txt new file mode 100644 index 0000000000..3a9970e08e --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/auth-05.txt @@ -0,0 +1,20 @@ +url + http://foo:bar@example.com/index.html +headers + authorization: Whatever +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Authorization: Whatever + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-01.txt b/cpan/HTTP-Tiny/corpus/cookies-01.txt new file mode 100644 index 0000000000..e71bf014cd --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-01.txt @@ -0,0 +1,34 @@ +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-02.txt b/cpan/HTTP-Tiny/corpus/cookies-02.txt new file mode 100644 index 0000000000..7e7db2c742 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-02.txt @@ -0,0 +1,52 @@ +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue01; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue01 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue02; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue02 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue02; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-03.txt b/cpan/HTTP-Tiny/corpus/cookies-03.txt new file mode 100644 index 0000000000..c7eab4ef37 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-03.txt @@ -0,0 +1,87 @@ +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue01; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue01 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue02; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index02.html +---------- +GET /index02.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue03; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue02 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue02; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index02.html +---------- +GET /index02.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue03 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue03; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-04.txt b/cpan/HTTP-Tiny/corpus/cookies-04.txt new file mode 100644 index 0000000000..7c9c1cb461 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-04.txt @@ -0,0 +1,37 @@ +url + http://example.com/index.html +headers + Cookie: cname=cvalue05; domain=example.com; path=/ +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue05 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue06; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname=cvalue06 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue06; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-05.txt b/cpan/HTTP-Tiny/corpus/cookies-05.txt new file mode 100644 index 0000000000..0d41152e99 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-05.txt @@ -0,0 +1,35 @@ +url + http://example.com/index.html +headers + No-Cookie-Jar: 1 +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue06; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname=cvalue06; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-06.txt b/cpan/HTTP-Tiny/corpus/cookies-06.txt new file mode 100644 index 0000000000..86632b0156 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-06.txt @@ -0,0 +1,51 @@ +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname1=cvalue01; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname1=cvalue01 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname2=cvalue02; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname1=cvalue01; cname2=cvalue02 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/cookies-07.txt b/cpan/HTTP-Tiny/corpus/cookies-07.txt new file mode 100644 index 0000000000..69c4a62447 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/cookies-07.txt @@ -0,0 +1,34 @@ +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Set-Cookie: cname1=cvalue01; domain=example.com; path=/ +Set-Cookie: cname2=cvalue02; domain=example.com; path=/ +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Cookie: cname1=cvalue01; cname2=cvalue02 + +---------- +HTTP/1.1 200 OK +Date: Sat, 02 Mar 2013 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/delete-01.txt b/cpan/HTTP-Tiny/corpus/delete-01.txt new file mode 100644 index 0000000000..a83069e6bd --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/delete-01.txt @@ -0,0 +1,15 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +DELETE /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/form-01.txt b/cpan/HTTP-Tiny/corpus/form-01.txt new file mode 100644 index 0000000000..876f1b67b5 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/form-01.txt @@ -0,0 +1,23 @@ +url + http://example.com/new +headers + Content-Type: text/plain +content + key|value|name|John Doe|noise|!@#$%^&*() +datatype + ARRAY +---------- +POST /new HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: application/x-www-form-urlencoded +Content-Length: 60 + +key=value&name=John+Doe&noise=%21%40%23%24%25%5E%26%2A%28%29 +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new/01.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/form-02.txt b/cpan/HTTP-Tiny/corpus/form-02.txt new file mode 100644 index 0000000000..5ec2d91f44 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/form-02.txt @@ -0,0 +1,21 @@ +url + http://example.com/new +content + key|value|name|John Doe|noise|!@#$%^&*() +datatype + HASH +---------- +POST /new HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: application/x-www-form-urlencoded +Content-Length: 60 + +key=value&name=John+Doe&noise=%21%40%23%24%25%5E%26%2A%28%29 +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new/01.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/form-03.txt b/cpan/HTTP-Tiny/corpus/form-03.txt new file mode 100644 index 0000000000..101224df12 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/form-03.txt @@ -0,0 +1,21 @@ +url + http://example.com/new +content + bar|baz|ack|foo +datatype + HASH +---------- +POST /new HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: application/x-www-form-urlencoded +Content-Length: 15 + +ack=foo&bar=baz +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new/01.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/form-04.txt b/cpan/HTTP-Tiny/corpus/form-04.txt new file mode 100644 index 0000000000..3f762c0609 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/form-04.txt @@ -0,0 +1,21 @@ +url + http://example.com/new +content + utf8|☺ +datatype + ARRAY +---------- +POST /new HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: application/x-www-form-urlencoded +Content-Length: 23 + +utf8=%C3%A2%C2%98%C2%BA +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new/01.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/form-05.txt b/cpan/HTTP-Tiny/corpus/form-05.txt new file mode 100644 index 0000000000..825604feb3 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/form-05.txt @@ -0,0 +1,21 @@ +url + http://example.com/new +content + bar|baz|ack|foo +datatype + ARRAY +---------- +POST /new HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: application/x-www-form-urlencoded +Content-Length: 15 + +bar=baz&ack=foo +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new/01.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/get-01.txt b/cpan/HTTP-Tiny/corpus/get-01.txt new file mode 100644 index 0000000000..e03fb3876c --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-01.txt @@ -0,0 +1,17 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-02.txt b/cpan/HTTP-Tiny/corpus/get-02.txt new file mode 100644 index 0000000000..4b540f4462 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-02.txt @@ -0,0 +1,22 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +headers + Accept: */* + X-Custom: This is a custom header +---------- +GET /index.html HTTP/1.1 +Host: example.com +Accept: */* +Connection: close +User-Agent: HTTP-Tiny/VERSION +X-Custom: This is a custom header + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-03.txt b/cpan/HTTP-Tiny/corpus/get-03.txt new file mode 100644 index 0000000000..e5eed63135 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-03.txt @@ -0,0 +1,13 @@ +url + http://example.com/missing.html +---------- +GET /missing.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 404 Not Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/get-04.txt b/cpan/HTTP-Tiny/corpus/get-04.txt new file mode 100644 index 0000000000..71698f9fe9 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-04.txt @@ -0,0 +1,17 @@ +url + http://example.com:9000/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com:9000 +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-05.txt b/cpan/HTTP-Tiny/corpus/get-05.txt new file mode 100644 index 0000000000..b689aaab0c --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-05.txt @@ -0,0 +1,21 @@ +url + http://example.com/chunked.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /chunked.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Transfer-Encoding: chunked + +2C +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +0 + diff --git a/cpan/HTTP-Tiny/corpus/get-06.txt b/cpan/HTTP-Tiny/corpus/get-06.txt new file mode 100644 index 0000000000..131bb58e3b --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-06.txt @@ -0,0 +1,19 @@ +url + http://example.com/cb.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +data_cb + sub { $main::data .= $_[0] } +---------- +GET /cb.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-07.txt b/cpan/HTTP-Tiny/corpus/get-07.txt new file mode 100644 index 0000000000..dec18fdf80 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-07.txt @@ -0,0 +1,19 @@ +new_args + proxy: http://proxy.example.com:8080/ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET http://example.com/index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-08.txt b/cpan/HTTP-Tiny/corpus/get-08.txt new file mode 100644 index 0000000000..3044db1c78 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-08.txt @@ -0,0 +1,21 @@ +new_args + max_size: 26 +url + http://example.com/index.html +expected_rc + 599 +expected_like + Size of response body exceeds the maximum allowed of 26 +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-09.txt b/cpan/HTTP-Tiny/corpus/get-09.txt new file mode 100644 index 0000000000..0d5eb5dbe2 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-09.txt @@ -0,0 +1,16 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-10.txt b/cpan/HTTP-Tiny/corpus/get-10.txt new file mode 100644 index 0000000000..23c0163547 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-10.txt @@ -0,0 +1,21 @@ +url + http://example.com/chunked.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /chunked.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Transfer-Encoding: CHUNKED + +2C +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +0 + diff --git a/cpan/HTTP-Tiny/corpus/get-11.txt b/cpan/HTTP-Tiny/corpus/get-11.txt new file mode 100644 index 0000000000..dca6d14ce1 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-11.txt @@ -0,0 +1,22 @@ +url + http://example.com/chunked.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /chunked.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 1024 +Transfer-Encoding: chunked + +2C +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +0 + diff --git a/cpan/HTTP-Tiny/corpus/get-12.txt b/cpan/HTTP-Tiny/corpus/get-12.txt new file mode 100644 index 0000000000..9cf2bf72e1 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-12.txt @@ -0,0 +1,17 @@ +url + http:///index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: localhost +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-13.txt b/cpan/HTTP-Tiny/corpus/get-13.txt new file mode 100644 index 0000000000..7e437559f7 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-13.txt @@ -0,0 +1,21 @@ +url + http://example.com/chunked.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /chunked.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Transfer-Encoding: chunked + +2C; this_extension=foo +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +0 + diff --git a/cpan/HTTP-Tiny/corpus/get-14.txt b/cpan/HTTP-Tiny/corpus/get-14.txt new file mode 100644 index 0000000000..e232aa2a33 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-14.txt @@ -0,0 +1,22 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +headers + X-Foo: one + X-Foo: two +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +X-Foo: one +X-Foo: two + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-15.txt b/cpan/HTTP-Tiny/corpus/get-15.txt new file mode 100644 index 0000000000..0bd5065d71 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-15.txt @@ -0,0 +1,17 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/01.01 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-16.txt b/cpan/HTTP-Tiny/corpus/get-16.txt new file mode 100644 index 0000000000..e17076de18 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-16.txt @@ -0,0 +1,19 @@ +url + http://example.com/index.html +expected_rc + 599 +expected_like + Malformed Status-Line +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/0 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-17.txt b/cpan/HTTP-Tiny/corpus/get-17.txt new file mode 100644 index 0000000000..e5d3d12eeb --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-17.txt @@ -0,0 +1,19 @@ +url + http://example.com/index.html +expected_rc + 599 +expected_like + Unsupported HTTP protocol +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.2 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-18.txt b/cpan/HTTP-Tiny/corpus/get-18.txt new file mode 100644 index 0000000000..f46f48cea3 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-18.txt @@ -0,0 +1,36 @@ +url + http://example.com/chunked.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_headers + transfer-encoding: chunked + x-a: Foo + x-a: Bar + x-a: Baz + x-b: Foo + x-b: Bar + x-b: Baz + x-c: Foo + +---------- +GET /chunked.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Transfer-Encoding: chunked +X-A: Foo +X-B: Foo +X-B: Bar + +2C +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +0 +X-A: Bar +X-A: Baz +X-B: Baz +X-C: Foo + diff --git a/cpan/HTTP-Tiny/corpus/get-19.txt b/cpan/HTTP-Tiny/corpus/get-19.txt new file mode 100644 index 0000000000..2ebb9a84b4 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-19.txt @@ -0,0 +1,22 @@ +url + http://example.com/chunked.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /chunked.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Transfer-Encoding: wacky +Transfer-Encoding: chunked + +2C +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +0 + diff --git a/cpan/HTTP-Tiny/corpus/get-20.txt b/cpan/HTTP-Tiny/corpus/get-20.txt new file mode 100644 index 0000000000..8873793665 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-20.txt @@ -0,0 +1,21 @@ +url + http://example.com/index.html +headers + connection: X-Foo + X-Foo: bar +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +X-Foo: bar +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/get-21.txt b/cpan/HTTP-Tiny/corpus/get-21.txt new file mode 100644 index 0000000000..df207f6c02 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/get-21.txt @@ -0,0 +1,23 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_rc + 200 +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 100 Continue + +HTTP/1.1 110 Arbitrary 1XX status code + +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/head-01.txt b/cpan/HTTP-Tiny/corpus/head-01.txt new file mode 100644 index 0000000000..1c6357aeb5 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/head-01.txt @@ -0,0 +1,16 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +HEAD /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 44 + diff --git a/cpan/HTTP-Tiny/corpus/keepalive-01.txt b/cpan/HTTP-Tiny/corpus/keepalive-01.txt new file mode 100644 index 0000000000..085391265e --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/keepalive-01.txt @@ -0,0 +1,9 @@ +No content length +---------- +0 +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html + +0123456789 diff --git a/cpan/HTTP-Tiny/corpus/keepalive-02.txt b/cpan/HTTP-Tiny/corpus/keepalive-02.txt new file mode 100644 index 0000000000..970360bead --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/keepalive-02.txt @@ -0,0 +1,10 @@ +Wrong content length +---------- +0 +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 10 + +01234567890123456789 diff --git a/cpan/HTTP-Tiny/corpus/keepalive-03.txt b/cpan/HTTP-Tiny/corpus/keepalive-03.txt new file mode 100644 index 0000000000..1792b8c380 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/keepalive-03.txt @@ -0,0 +1,11 @@ +Connection close +---------- +0 +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 10 +Connection: close + +0123456789 diff --git a/cpan/HTTP-Tiny/corpus/keepalive-04.txt b/cpan/HTTP-Tiny/corpus/keepalive-04.txt new file mode 100644 index 0000000000..ef5e4d98c8 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/keepalive-04.txt @@ -0,0 +1,10 @@ +Not HTTP/1.1 +---------- +0 +---------- +HTTP/1.0 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 10 + +0123456789 diff --git a/cpan/HTTP-Tiny/corpus/keepalive-05.txt b/cpan/HTTP-Tiny/corpus/keepalive-05.txt new file mode 100644 index 0000000000..75872c9e40 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/keepalive-05.txt @@ -0,0 +1,11 @@ +Not HTTP/1.1 with keep-alive +---------- +0 +---------- +HTTP/1.0 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 10 +Connection: keep-alive + +0123456789 diff --git a/cpan/HTTP-Tiny/corpus/mirror-01.txt b/cpan/HTTP-Tiny/corpus/mirror-01.txt new file mode 100644 index 0000000000..5ac0eb5cad --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/mirror-01.txt @@ -0,0 +1,18 @@ +url + http://example.com/modified.txt +---------- +GET /modified.txt HTTP/1.1 +Host: example.com +Connection: close +If-Modified-Since: Tue, 01 Feb 1994 00:00:00 GMT +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Last-Modified: Wed, 02 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/mirror-02.txt b/cpan/HTTP-Tiny/corpus/mirror-02.txt new file mode 100644 index 0000000000..4799a2e777 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/mirror-02.txt @@ -0,0 +1,14 @@ +url + http://example.com/not-modified.txt +---------- +GET /not-modified.txt HTTP/1.1 +Host: example.com +Connection: close +If-Modified-Since: Tue, 01 Feb 1994 00:00:00 GMT +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 304 Not Modified +Date: Thu, 03 Feb 1994 00:00:00 GMT +Last-Modified: Tue, 01 Feb 1994 00:00:00 GMT + diff --git a/cpan/HTTP-Tiny/corpus/mirror-03.txt b/cpan/HTTP-Tiny/corpus/mirror-03.txt new file mode 100644 index 0000000000..711710d90c --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/mirror-03.txt @@ -0,0 +1,17 @@ +url + http://example.com/new.txt +---------- +GET /new.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Last-Modified: Tue, 01 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/mirror-04.txt b/cpan/HTTP-Tiny/corpus/mirror-04.txt new file mode 100644 index 0000000000..9beeeb3019 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/mirror-04.txt @@ -0,0 +1,13 @@ +url + http://example.com/missing.txt +---------- +GET /missing.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 404 Not Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/mirror-05.txt b/cpan/HTTP-Tiny/corpus/mirror-05.txt new file mode 100644 index 0000000000..f1f3573627 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/mirror-05.txt @@ -0,0 +1,20 @@ +url + http://example.com/modified.txt +headers + if-modified-since: Tue, 01 Feb 1994 12:00:00 GMT +---------- +GET /modified.txt HTTP/1.1 +Host: example.com +Connection: close +If-Modified-Since: Tue, 01 Feb 1994 12:00:00 GMT +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Last-Modified: Wed, 02 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/post-01.txt b/cpan/HTTP-Tiny/corpus/post-01.txt new file mode 100644 index 0000000000..644731b080 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/post-01.txt @@ -0,0 +1,24 @@ +url + http://example.com/index.html +headers + Content-Type: text/plain + Content-Length: 42 +content + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +POST /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/proxy-auth-01.txt b/cpan/HTTP-Tiny/corpus/proxy-auth-01.txt new file mode 100644 index 0000000000..548a599eb7 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/proxy-auth-01.txt @@ -0,0 +1,21 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +new_args + proxy: http://foo:bar@proxy.example.com/ + +---------- +GET http://example.com/index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Proxy-Authorization: Basic Zm9vOmJhcg== + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef diff --git a/cpan/HTTP-Tiny/corpus/put-01.txt b/cpan/HTTP-Tiny/corpus/put-01.txt new file mode 100644 index 0000000000..b8d6286fa1 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/put-01.txt @@ -0,0 +1,22 @@ +url + http://example.com/new.txt +headers + Content-Type: text/plain +content + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +PUT /new.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/put-02.txt b/cpan/HTTP-Tiny/corpus/put-02.txt new file mode 100644 index 0000000000..04d267563b --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/put-02.txt @@ -0,0 +1,24 @@ +url + http://example.com/callback.txt +headers + Content-Type: text/plain + Content-Length: 42 +content_cb + my @content = qq{abcdefghijklmnopqrstuvwxyz1234567890abcdef}; + sub { shift @content } +---------- +PUT /callback.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/callback.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/put-03.txt b/cpan/HTTP-Tiny/corpus/put-03.txt new file mode 100644 index 0000000000..99fe188f4e --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/put-03.txt @@ -0,0 +1,25 @@ +url + http://example.com/chunked.txt +headers + Content-Type: text/plain +content_cb + my @content = qq{abcdefghijklmnopqrstuvwxyz1234567890abcdef}; + sub { shift @content } +---------- +PUT /chunked.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: text/plain +Transfer-Encoding: chunked + +2A +abcdefghijklmnopqrstuvwxyz1234567890abcdef +0 + +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/chunked.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/put-04.txt b/cpan/HTTP-Tiny/corpus/put-04.txt new file mode 100644 index 0000000000..eeec295c80 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/put-04.txt @@ -0,0 +1,19 @@ +url + http://example.com/new.txt +content + abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +PUT /new.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: application/octet-stream +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/new.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/put-05.txt b/cpan/HTTP-Tiny/corpus/put-05.txt new file mode 100644 index 0000000000..f4bcaf18e9 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/put-05.txt @@ -0,0 +1,27 @@ +url + http://example.com/chunked.txt +headers + Content-Type: text/plain +content_cb + my @content = qq{abcdefghijklmnopqrstuvwxyz1234567890abcdef}; + sub { shift @content } +trailer_cb + sub { return { 'x-foo' => 'bar' } } +---------- +PUT /chunked.txt HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION +Content-Type: text/plain +Transfer-Encoding: chunked + +2A +abcdefghijklmnopqrstuvwxyz1234567890abcdef +0 +X-Foo: bar +---------- +HTTP/1.1 201 Created +Date: Thu, 03 Feb 1994 00:00:00 GMT +Location: http://example.com/chunked.txt +Content-Length: 0 + diff --git a/cpan/HTTP-Tiny/corpus/redirect-01.txt b/cpan/HTTP-Tiny/corpus/redirect-01.txt new file mode 100644 index 0000000000..c6ed575482 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-01.txt @@ -0,0 +1,35 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index2.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-02.txt b/cpan/HTTP-Tiny/corpus/redirect-02.txt new file mode 100644 index 0000000000..b2a296796e --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-02.txt @@ -0,0 +1,52 @@ +new_args + max_redirect: 0 +url + http://example.com/index.html +expected + <a href="http://example.com/index2.html">redirect</a> +expected_url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index3.html + +<a href="http://example.com/index3.html">redirect</a> + +---------- +GET /index3.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-03.txt b/cpan/HTTP-Tiny/corpus/redirect-03.txt new file mode 100644 index 0000000000..8fc84beeb4 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-03.txt @@ -0,0 +1,52 @@ +new_args + max_redirect: 1 +url + http://example.com/index.html +expected + <a href="http://example.com/index3.html">redirect</a> +expected_url + http://example.com/index2.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index3.html + +<a href="http://example.com/index3.html">redirect</a> + +---------- +GET /index3.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-04.txt b/cpan/HTTP-Tiny/corpus/redirect-04.txt new file mode 100644 index 0000000000..3c19ada352 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-04.txt @@ -0,0 +1,52 @@ +new_args + max_redirect: 2 +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index3.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index3.html + +<a href="http://example.com/index3.html">redirect</a> + +---------- +GET /index3.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-05.txt b/cpan/HTTP-Tiny/corpus/redirect-05.txt new file mode 100644 index 0000000000..5ffce1838f --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-05.txt @@ -0,0 +1,50 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index3.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 302 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 301 Found +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: /index3.html + +<a href="http://example.com/index3.html">redirect</a> + +---------- +GET /index3.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-06.txt b/cpan/HTTP-Tiny/corpus/redirect-06.txt new file mode 100644 index 0000000000..27e3e4ad72 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-06.txt @@ -0,0 +1,35 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index2.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 303 See Other +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-07.txt b/cpan/HTTP-Tiny/corpus/redirect-07.txt new file mode 100644 index 0000000000..11b448090c --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-07.txt @@ -0,0 +1,35 @@ +url + http://example.com/index.html +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index2.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 307 Temporary Redirect +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + diff --git a/cpan/HTTP-Tiny/corpus/redirect-08.txt b/cpan/HTTP-Tiny/corpus/redirect-08.txt new file mode 100644 index 0000000000..67a59da502 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-08.txt @@ -0,0 +1,21 @@ +url + http://example.com/index.html +expected + <a href="http://example.com/index2.html">redirect</a> +expected_url + http://example.com/index.html +---------- +GET /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 305 Use Proxy +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + diff --git a/cpan/HTTP-Tiny/corpus/redirect-09.txt b/cpan/HTTP-Tiny/corpus/redirect-09.txt new file mode 100644 index 0000000000..afb0ec2f06 --- /dev/null +++ b/cpan/HTTP-Tiny/corpus/redirect-09.txt @@ -0,0 +1,37 @@ +url + http://example.com/index.html +method + POST +expected + abcdefghijklmnopqrstuvwxyz1234567890abcdef +expected_url + http://example.com/index2.html +---------- +POST /index.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 303 See Other +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/html +Content-Length: 53 +Location: http://example.com/index2.html + +<a href="http://example.com/index2.html">redirect</a> + +---------- +GET /index2.html HTTP/1.1 +Host: example.com +Connection: close +User-Agent: HTTP-Tiny/VERSION + +---------- +HTTP/1.1 200 OK +Date: Thu, 03 Feb 1994 00:00:00 GMT +Content-Type: text/plain +Content-Length: 42 + +abcdefghijklmnopqrstuvwxyz1234567890abcdef + |