嗯,不需要登录
$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>   

解决方案 »

  1.   

    是的,直接访问 http://218.25.48.198/jsp/fpzjcx/fpzjcx_jg.jsp 就是那个提示
    提交过去就对了
      

  2.   

    求大神指教  我也是同样的问题  我也是微信  需要模拟开发  大神是怎么解决的啊 附上我的代码$url='http://cx.ytjj.gov.cn:9081/ytjjvio/veh4tablevio.action?444';
    $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;
      

  3.   

    楼主,我要模拟登录一个jsp网页,可否请教一些问题