downloading .zip from a link
im trying to download a .zip file from a link "http://pack.lavender-mc.com" it works just fine from browser but doesnt in terminal and in java
when i try to download from terminal i get the stuff in picture
btw this link works
"https://www.dropbox.com/scl/fi/hdpannlxcks044f6g8bw9/lmc_pack.zip?rlkey=9zc8bukx6ixrrbjl9payliv5f&dl=1"
11 Replies
⌛
This post has been reserved for your question.
Hey @MoonSouhayl! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
The url returns 301, so my guess it that
openStream
doesn't support redirections.That method is really old and clunky. In modern Java you this https://www.baeldung.com/java-9-http-client
Baeldung
Exploring the New HTTP Client in Java | Baeldung
Explore the new Java HttpClient API which provides a lot of flexibility and powerful features.
its stuck like this
wait let me try in java
Oh, the site doesn't support HTTPS at all, so it won't work.
Time to learn
HttpClient
. Good luck!eeeeh, do i reallly have to change it ? its working well and that page is full of stuff, my brain is fried :boohoo:
Get some rest then.
NO
but do i really have to change it ?
why would i ?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.