本地代码:
$cookie = 'Name=Content;SRCHD=AF=NOFORM;PPLState=1';
$opts = array('http' => array('header'=> 'Cookie:'.@$cookie.''));
$context = stream_context_create($opts);
$contents = file_get_contents('http://qvni.cn/cookie', false, $context);
echo $contents;
远程代码(直接输出获取到的Cookie)
<?php
print_r($_COOKIE);
用Chrome查看Cookie的方法: