summaryrefslogtreecommitdiff
path: root/cpan/HTTP-Tiny/t/cases/get-16.txt
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2011-01-16 20:57:02 -0500
committerDavid Golden <dagolden@cpan.org>2011-01-16 21:05:32 -0500
commita3ab329f3fc9494e700f51c38cef42021c130b6e (patch)
tree5c1f2f6b62ec7318a2e910c36d70184a5a706999 /cpan/HTTP-Tiny/t/cases/get-16.txt
parent7dc5472a0a41a8396671d5586d4c1254a1cb5e8c (diff)
downloadperl-a3ab329f3fc9494e700f51c38cef42021c130b6e.tar.gz
Add HTTP::Tiny as a dual-life core module
HTTP::Tiny 0.008 has been added as a dual-life module. It is a very small, simple HTTP/1.1 client designed for simple GET requests and file mirroring. It has has been added to enable CPAN.pm and CPANPLUS to "bootstrap" HTTP access to CPAN using pure Perl without relying on external binaries like F<curl> or F<wget>.
Diffstat (limited to 'cpan/HTTP-Tiny/t/cases/get-16.txt')
-rw-r--r--cpan/HTTP-Tiny/t/cases/get-16.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpan/HTTP-Tiny/t/cases/get-16.txt b/cpan/HTTP-Tiny/t/cases/get-16.txt
new file mode 100644
index 0000000000..e17076de18
--- /dev/null
+++ b/cpan/HTTP-Tiny/t/cases/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