1HTTP::Easy(3)         User Contributed Perl Documentation        HTTP::Easy(3)
2
3
4

NAME

6       HTTP::Easy - Useful set for work with HTTP
7

SYNOPSIS

9           use HTTP::Easy::Headers;
10           my $h = "Connection: close\015\012".
11               "Expect: continue-100\015\012".
12               "Content-Type: text/html";
13
14           my $hash = HTTP::Easy::Headers->decode($h);
15
16           $hash->{connection};     # 'close'
17           $hash->{expect};         # 'continue-100'
18           $hash->{'content-type'}; # 'text/html'
19
20           my $hdr = HTTP::Easy::Headers->encode($hash);
21
22           use HTTP::Easy::Cookie;
23
24           my $cookie_jar = HTTP::Easy::Cookie->decode($hdr->{cookie});
25
26           $hdr->{cookie} = HTTP::Easy::Cookie->encode($cookie_jar, host => 'example.net', path => '/path' );
27

AUTHOR

29       Mons Anderson, "<mons at cpan.org>"
30
32       Copyright 2010-2013 Mons Anderson.
33
34       This program is free software; you can redistribute it and/or modify it
35       under the terms of either: the GNU General Public License as published
36       by the Free Software Foundation; or the Artistic License.
37
38
39
40perl v5.36.0                      2022-08-04                     HTTP::Easy(3)
Impressum