Java Jsoup downloading torrent file

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Java Jsoup downloading torrent file



I got a problem, I want to connect to this website (https://ww2.yggtorrent.is) to download torrent file. I've made a method to connect to the website by Jsoup who work well but when I try to use it to Download the torrent file, the website return "You must be connected to download file".



Here is my code to connect:


Response res = Jsoup.connect("https://ww2.yggtorrent.is/user/login")
.data("id", "<MyLogin>", "pass", "<MyPassword>")
.method(Method.POST)
.execute();



and here is my code to download file


Response resultImageResponse = Jsoup.connect("https://ww2.yggtorrent.is/engine/download_torrent?id=285633").cookies(cookies)
.ignoreContentType(true).execute();

FileOutputStream out = (new FileOutputStream(new java.io.File("toto.torrent")));
out.write(resultImageResponse.bodyAsBytes());
out.close();



I've tested a lot of thing but now I have no clue.





Probably authentication issues?
– Marcos Vasconcelos
5 mins ago





no because I've tested with a wrong password and it return me an error
– Jacky-Marley
47 secs ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

qPjxKWO9L1YYaumQ664 Qv0RpvIPQW,mhQAztyB
RvFHcirMUnL4,1YEB1Dj,XDuMSLejrp0SxQs27qLW 6H9P,clvCc6aq cOpdSeh AmbmY13,ea,SUVkSoqCFjwzZ0mcce 62,XuYq

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham