-
Notifications
You must be signed in to change notification settings - Fork 2
Parse and encode HTTP headers and cookies
Mons/HTTP-Easy
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NAME HTTP::Easy - Useful set for work with HTTP SYNOPSIS 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' ); AUTHOR Mons Anderson, "<mons at cpan.org>" LICENSE AND COPYRIGHT 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.
About
Parse and encode HTTP headers and cookies