cpan/HTTP-Tiny/t/cases/auth-02.txt
cpan/HTTP-Tiny/t/cases/auth-03.txt
cpan/HTTP-Tiny/t/cases/auth-04.txt
+cpan/HTTP-Tiny/t/cases/auth-05.txt
cpan/HTTP-Tiny/t/cases/cookies-01.txt
cpan/HTTP-Tiny/t/cases/cookies-02.txt
cpan/HTTP-Tiny/t/cases/cookies-03.txt
},
'HTTP::Tiny' => {
- 'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.037.tar.gz',
+ 'DISTRIBUTION' => 'DAGOLDEN/HTTP-Tiny-0.038.tar.gz',
'FILES' => q[cpan/HTTP-Tiny],
'EXCLUDED' => [
't/00-compile.t',
use strict;
use warnings;
# ABSTRACT: A small, simple, correct HTTP/1.1 client
-our $VERSION = '0.037'; # VERSION
+our $VERSION = '0.038'; # VERSION
use Carp ();
}
# if we have Basic auth parameters, add them
- if ( length $auth && ! defined $request->{headers}{authentication} ) {
+ if ( length $auth && ! defined $request->{headers}{authorization} ) {
require MIME::Base64;
$request->{headers}{authorization} =
"Basic " . MIME::Base64::encode_base64($auth, "");
=head1 VERSION
-version 0.037
+version 0.038
=head1 SYNOPSIS
--- /dev/null
+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