J
jck11
hi all
when I use IE to connect to the www.google.com
I find that my Request Header sends the data 'cookie' ==>
PREF=ID=66f018844077c8d5:TM=1133289512:LM=1133289512:S=EN29yY8uk1D-VVyS
if I want to use perl to connect to the www.google.com
How to fill the cookie field??
Thanks a lot
$req->header(
'Accept' => 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*',
'Accept-Language' => 'zh-tw',
'Accept-Encoding' => 'gzip, deflate',
'User-Agent' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322; .NET CLR 2.0.50727)',
'Host' => 'www.google.com',
'Connection' => 'Keep-Alive',
'Cookie' => ''); ???? how do I know I must fill the data
'PREF=ID=66f018844077c8d5:TM=1133289512:LM=1133289512:S=EN29yY8uk1D-VVyS' h
when I use IE to connect to the www.google.com
I find that my Request Header sends the data 'cookie' ==>
PREF=ID=66f018844077c8d5:TM=1133289512:LM=1133289512:S=EN29yY8uk1D-VVyS
if I want to use perl to connect to the www.google.com
How to fill the cookie field??
Thanks a lot
$req->header(
'Accept' => 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*',
'Accept-Language' => 'zh-tw',
'Accept-Encoding' => 'gzip, deflate',
'User-Agent' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322; .NET CLR 2.0.50727)',
'Host' => 'www.google.com',
'Connection' => 'Keep-Alive',
'Cookie' => ''); ???? how do I know I must fill the data
'PREF=ID=66f018844077c8d5:TM=1133289512:LM=1133289512:S=EN29yY8uk1D-VVyS' h