HTTP::Easy - Useful set for work with HTTP
use HTTP::Easy::Headers; my $h = "Connection: close\015\012". "Expect: continue-100\015\012". "Content-Type: text/html"; my $hash = HTTP::Easy::Headers->decode($h); $hash->{connection}; # 'close' $hash->{expect}; # 'continue-100' $hash->{'content-type'}; # 'text/html' my $hdr = HTTP::Easy::Headers->encode($hash); use HTTP::Easy::Cookie; my $cookie_jar = HTTP::Easy::Cookie->decode($hdr->{cookie}); $hdr->{cookie} = HTTP::Easy::Cookie->encode($cookie_jar, host => 'example.net', path => '/path' );
Mons Anderson, <mons at cpan.org>
<mons at cpan.org>
Copyright 2010-2013 Mons Anderson.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
To install HTTP::Easy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Easy
CPAN shell
perl -MCPAN -e shell install HTTP::Easy
For more information on module installation, please visit the detailed CPAN module installation guide.