A
Alont
the header Client sent:
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1
1.3); .NET CLR 1.1.4322)
Host: localhost
Content-Length: 52
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDQGGGGPOC=PPMDJLKAPKGILCKKAFDHCFOM
abc=xxxx&ccc=xxxx
I want get "abc=xxxx&ccc=xxxx" and "Cookie:",the code I wrote:
require HTTP::Headers;
$h = new HTTP::Headers;
$Cookie = $h->header('Cookie');
print $Cookie;
print "I hate you";
print "I love you";
but the result of "print $Cookie;" is empty, where's my fault?
and how to get "abc=xxxx&ccc=xxxx"-------it isn't a pair of value
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1
1.3); .NET CLR 1.1.4322)
Host: localhost
Content-Length: 52
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDQGGGGPOC=PPMDJLKAPKGILCKKAFDHCFOM
abc=xxxx&ccc=xxxx
I want get "abc=xxxx&ccc=xxxx" and "Cookie:",the code I wrote:
require HTTP::Headers;
$h = new HTTP::Headers;
$Cookie = $h->header('Cookie');
print $Cookie;
print "I hate you";
print "I love you";
but the result of "print $Cookie;" is empty, where's my fault?
and how to get "abc=xxxx&ccc=xxxx"-------it isn't a pair of value