使用curl模拟登录时提示The URL has moved here 如题.......我是模拟登录人人网时出现上边的该问题的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $login_url = "http://www.renren.com/PLogin.do"; $cookiefile = tempnam('../temp/','renren'); $post_fields = '[email protected]&password=xxxxxxxx&origURL=http://www.renren.com/home&domain=renren.com'; $curl=curl_init($login_url); curl_setopt($curl,CURLOPT_HEADER,0); curl_setopt($curl,CURLOPT_RETURNTRANSFER,0); curl_setopt($curl,CURLOPT_POST,1); curl_setopt($curl,CURLOPT_POSTFIELDS,$post_fields); curl_setopt($curl,CURLOPT_COOKIEJAR,$cookiefile); curl_exec($curl); curl_close($curl); 急!!!哪位高手帮帮我啊? 会员登陆的问题?? include("includes/admin.php"); 用常量还是用数组? 请教有关php+xml读取属性问题!!!!!!! 将PHP网站从linux移植到windows下需要怎么做? PHP不如ASP好使的三个地方 php做的产品,一般有哪几种加密方法? 大家探讨一下. 为什么我的表格线不显示 关于htaccess,二级域名的问题,在线等 关于php共享内存问题 有没有完全无刷新的聊天室???
$cookiefile = tempnam('../temp/','renren');
$post_fields = '[email protected]&password=xxxxxxxx&origURL=http://www.renren.com/home&domain=renren.com'; $curl=curl_init($login_url);
curl_setopt($curl,CURLOPT_HEADER,0);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,0);
curl_setopt($curl,CURLOPT_POST,1);
curl_setopt($curl,CURLOPT_POSTFIELDS,$post_fields);
curl_setopt($curl,CURLOPT_COOKIEJAR,$cookiefile);
curl_exec($curl);
curl_close($curl);