1
我想连接到https://www.notebooksbilliger.de/但下面的代码它不工作:JSoup HTTP错误获取URL。状态= 405
try
{
Response response = Jsoup.connect(url)
.userAgent("Mozilla")
.ignoreContentType(true)
.execute();
System.out.println(response.url());
doc = response.parse();
}
catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
为什么我得到状态405?我怎么能解决这个问题?
非常感谢..
塞巴斯蒂安