摘要:
/i', $contents, $matches);if(!empty($matches)) { $formhash = $matches[1];} else { die('Not found the forumhash.');}//POST数据,获取COOKIE,cookie文件放在网站的temp目录下$cookie_file = tempnam('./temp','cookie');$ch = curl_init($login_url);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ 阅读全文
摘要:
$login_url = 'http://passport.renren.com/PLogin.do';$post_fields['email'] = 'XXXX';$post_fields['password'] = 'XXXX';$post_fields['origURL'] = 'http%3A%2F%2Fhome.renren.com%2FHome.do';$post_fields['domain'] = 'renren.com';//cook 阅读全文