2

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

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();
    }

Why i get status 405? How i could solve this problem?

Many thanks..

Sebastian

1 Answer 1

3

Problem solved

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.