当我通过 CURL 获取网页内容然后我收到页面内容但得到错误查询结果不存在时,我陷入了困境。我总是遇到未找到元素的错误。
但是当我将 URL 放入浏览器时,得到了适当的结果。我该如何解决?
我使用的网址是http://164.100.9.38/judis/handle/123456789/30346/simple-search?query=%28%28petitioner:ajay%29%29&from_advanced=true&query11=&query9=&query8=&conjunction8=AND&conjunction9=AND&query10=&conjunction6=AND&conjunction7=AND&field5=judge&field4=petitioner&field3=respondent&field2=caseyear&field9=abstract&field8=type&field7=datejudgement&conjunction10=AND&field6=headnotes&query4=ajay&query5=&query6=&query7=&field1=casenumber&query1=&query2=&query3=&conjunction3=AND&conjunction2=AND&conjunction5=AND&conjunction4=AND&field10=citation&conjunction1=AND&field11=keyword&num_search_field=11
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
提前致谢。