更新时间:2023-02-24 14:40:25
您需要两件事:
引用
application / x-www-form-urlencodedPOST数据
a referrer
an "application/x-www-form-urlencoded" POST data
$params = 'lccp_trnname='.urlencode('14553').'&getIt='.urlencode('Get Schedule');
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch,CURLOPT_REFERER, "http://www.indianrail.gov.in/train_Schedule.html");