JSoup HTTP error fetching URL. Status=405

前端 未结 1 1004
北恋
北恋 2021-01-22 13:46

i would like connect to https://www.notebooksbilliger.de/ but with following code it does not work:

try
    {
        Response response = Jsoup.connect(url)
             


        
相关标签:
1条回答
  • 2021-01-22 14:37

    Problem solved

    Changed useragent from "Mozilla" to "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0)"

    0 讨论(0)
提交回复
热议问题