2017-01-01 73 views
-3

我試着在爲什麼我的JSoup請求返回空白頁面?

siDoc = Jsoup.connect("http://www.streetinsider.com").get(); 

連接到一個網站,它返回

<html> 
    <head></head> 
    <body></body> 
</html> 
+2

請提供完整的'java'代碼 – Dekel

+0

我只是詢問是否jsoup上是.PHP –

+1

是的,它的網頁作品。 jsoup不關心擴展。 – Dekel

回答

0

嘗試添加userAgent

Document doc = Jsoup.connect("http://www.streetinsider.com").userAgent("Mozilla").get(); 
相關問題