phpspider icon indicating copy to clipboard operation
phpspider copied to clipboard

getcookie 函数失效

Open beerkala opened this issue 7 years ago • 2 comments

getcookie 函数无法正确获取,获取的url不支持https://github.com/owner888/phpspider/issues/new多路径网址。

$spider->on_start = function($phpspider) { $cookie = requests::get_cookie("SUB", "s.weibo.com"); // 把Cookie设置到 weibo.com 域名下 requests::set_cookie("SUB", $cookie, "weibo.com"); };

beerkala avatar Jun 18 '17 01:06 beerkala

see see

BrainGithub avatar Jun 30 '17 15:06 BrainGithub

在on_start里面不可能就有cookie的啊,所以肯定是空的啊

owner888 avatar Jul 03 '17 11:07 owner888