當我通過CURL獲取網頁內容時,我陷入了一種情況,然後收到了頁面內容,但得到的錯誤查詢結果不存在。我總是收到找不到元素的錯誤。未找到捲曲元素錯誤
但是,當我把URL放在瀏覽器中,然後得到適當的結果。我該如何解決這個問題?我使用
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);
感謝。
你可以發佈cURL腳本嗎? –
它使用簡單的URL(只是谷歌)嗎? – koopajah
如何訪問它的瀏覽器? –