1

I am trying to send a post request with the code below, but it gives an error. This is the log:

E/err: HTTP error fetching URL
E/err: org.jsoup.HttpStatusException: HTTP error fetching URL. Status=500, URL=https://eksisozluk.com/entry/favla

information about request

information about form data

And this is my code:

Jsoup.connect("https://eksisozluk.com/entry/favla")
                    .data("entryId", entryId)
                    .cookies(loginCookies)
                    .userAgent("Mozilla")
                    .method(Connection.Method.POST)
                    .execute();
Mert Elifoğlu
  • 111
  • 3
  • 7
  • I think that the issue might be that you are trying to connect to HTTPS url without specified SSL certificate. https://stackoverflow.com/questions/7744075/how-to-connect-via-https-using-jsoup seems to be similar case. – Lemonov Jun 28 '17 at 10:52
  • I noticed that the type of the request that I want to do is an XMLHttpRequest, and I think I need to do that in another way. – Mert Elifoğlu Jul 03 '17 at 08:01

0 Answers0