嗯,不需要登录
$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>
提交过去就对了
$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;