below is my code:
[php[<?
$url = "http://qyxy.baic.gov.cn/zhcx/zhcxAction!list.dhtml?op=cx";
$http_header = array(
"Accept" => "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, /",
"Accept-Encoding" => "gzip, deflate",
"Accept-Language" => "en-us,zh-cn;q=0.5",
"Connection" => "Keep-Alive",
"Content-Type" => "application/x-www-form-urlencoded",
"Host" => "qyxy.baic.gov.cn",
"Referer" => "http://qyxy.baic.gov.cn/zhcx/zhcxAction!list.dhtml?op=cx",
"User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
);
$post_data = array (
"zhcxModel.ent_name" => "",
"zhcxModel.lic_reg_no" => "110000450124316",
"zhcxModel.corp_rpt" => "",
"zhcxModel.cer_type" => "",
"zhcxModel.cer_no" => "",
"zhcxModel.dom" => ""
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Accept: {$http_header['Accept']}",
"Accept-Encoding: {$http_header['Accept-Encoding']}",
"Accept-Language: {$http_header['Accept-Language']}",
"Connection: {$http_header['Connection']}",
"Content-Type: {$http_header['Content-Type']}",
"Host: {$http_header['Host']}",
"Referer: {$http_header['Referer']}",
"User-Agent: {$http_header['User-Agent']}"
));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_MAXREDIRS, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt ($ch, CURLOPT_COOKIE , "wdcid=34aa9fb9ffe6255b; wdlast=1267275231; JSESSIONID=vR2bLJVL6vX1szYP28WJ4v3Vp259hklhhZMQ11TjVfQPHLR1q2JB!-1846855717;
BIGipServerPool_xy=219523264.17183.0000" );
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,0);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>[/code]