[英]getting 502 proxy error while parsing
我解析一個頁面,並從中獲取響應,但是經過一段時間,即在完成某些解析之后,我從服務器收到此錯誤-
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /file.php.
Reason: Error reading from remote server
在此之后,我的解析失敗。 我什至嘗試過sleep()函數,但是它沒有幫助,錯誤仍然存在。
他們是暫時阻止我的IP還是什么? 這可能是什么原因,如何在不出現此錯誤和所有錯誤的情況下解析那些頁面?
為什么不使用CURL來獲取頁面內容,然后解析它們呢? 讓我知道這是否有效,或者您需要任何幫助。
-皮納基
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.