嗯,不需要登录
$url = 'http://218.25.48.198/jsp/fpzjcx/fpzjcx_jg.jsp';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'fpdm1=221011270133&fphm1=06649746');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
echo $data;<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<title>沈阳地税发票摇奖信息查询系统</title>
</head><body marginwidth="0" marginheight="0" topmargin="6" >
<from>
<div align="center"><TABLE class="table1" width="75%" height="75%" border="1" cellspacing="1" cellpadding="0" background="/jsp/public/images/findOK.jpg" >
<tr>
<td align="center"><font size="5"><b>查询结果</b></font></td>
</tr>
<tr><td align="center" ><font size="5">
您好,恭喜您已进入第20130501期奖池,您有4次参与摇奖机会,摇奖号码起221011270133066497460001,摇奖号码止221011270133066497460004,开奖日期为2013年6月第二周的周三,祝您中奖。</font></td>
</tr>
<tr>
<td colspan=5>
<div align="center" class="mypop"> <br>
<a href="javascript:history.back();">
<image border="0" src="/jsp/public/images/anniu_back.gif"></a>
</div>
</td>
</tr>
</tr>
</form> </table>
</div>
</form>
</body></html>
$url = 'http://218.25.48.198/jsp/fpzjcx/fpzjcx_jg.jsp';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'fpdm1=221011270133&fphm1=06649746');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
echo $data;<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<title>沈阳地税发票摇奖信息查询系统</title>
</head><body marginwidth="0" marginheight="0" topmargin="6" >
<from>
<div align="center"><TABLE class="table1" width="75%" height="75%" border="1" cellspacing="1" cellpadding="0" background="/jsp/public/images/findOK.jpg" >
<tr>
<td align="center"><font size="5"><b>查询结果</b></font></td>
</tr>
<tr><td align="center" ><font size="5">
您好,恭喜您已进入第20130501期奖池,您有4次参与摇奖机会,摇奖号码起221011270133066497460001,摇奖号码止221011270133066497460004,开奖日期为2013年6月第二周的周三,祝您中奖。</font></td>
</tr>
<tr>
<td colspan=5>
<div align="center" class="mypop"> <br>
<a href="javascript:history.back();">
<image border="0" src="/jsp/public/images/anniu_back.gif"></a>
</div>
</td>
</tr>
</tr>
</form> </table>
</div>
</form>
</body></html>
解决方案 »
- 我有一个GBK的xml。loadXML simplexml_import_dom后,居然编码在gbk 或 gb2312下都是乱码了
- 文本框输入数量比较问题
- iis+php5.3+fastcgi总是失败
- PHP 急问题?????????
- 高价请个PHPer
- 我想学php有人教我吗
- PHP数组怎样显示在前台页面
- php session 问题 请大家帮忙------------系统 Mandrake10.1
- 小弟搞了这个论坛,大家去看看,里有免费代理服务器和免费做QQ会员的方法.
- 利用odbc连接数据库如何知道查询到的数据的总数?不是用mysql!
- 请教个mysql问题.关于获取查询结果中某一个字段的最大值..(按照其他字段排序)
- php curl 多线程抓取数据能判断分别来自哪个url吗?
提交过去就对了
$post_data= array (
"vehvio.hphm"=>'鲁FZJ801',
"vehvio.clsbdh" =>'3235',
"vehvio.hpzl" => "02"
); $ch = curl_init();
// 设置URL和相应的选项
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 3);//设置为POST方式
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "vehvio.hphm=鲁FZJ801&vehvio.clsbdh=3235&vehvio.hpzl=02");
//curl_setopt($ch, CURLOPT_ENCODING, "utf-8"); // 关键在这里
// 抓取URL并把它传递给浏览器
$content = curl_exec($ch);echo $content . "_";
exit;