I am trying to download PlaceholderAPI to try it out on a linux server. The machine runs headless with no GUI, and the only access is via SSH and the bash command prompt.
The file I want to download is on this page:
I need the file URL in order to download it using the stripped-down web download tool wget which does not do javascript. wget only knows how to download files.
So in Chrome on Windows 10, I point at the big Download button on that page, right-click to get the direct-download URL… and there’s no way to obtain that.
If I choose inspect Chrome shows me this:
<form action="/rojo8399/PlaceholderAPI/versions/recommended/download"
method="post" style="display: none;" id="form-download">
<input type="hidden" name="csrfToken"
value="a1bf77facdedd812036ab9a64014f7291c8202ff-1486792279395-1bb5576adbc5a046d3dbbaa6">
</form>
Which doesn’t list a “JAR” or “ZIP” to download with wget. Apparently the “form action” is the URL?
This does not work.
wget https://ore.spongepowered.org/rojo8399/PlaceholderAPI/versions/recommended/download
--2017-02-10 22:00:26-- https://ore.spongepowered.org/rojo8399/PlaceholderAPI/versions/recommended/download
Resolving ore.spongepowered.org (ore.spongepowered.org)... 185.57.191.39
Connecting to ore.spongepowered.org (ore.spongepowered.org)|185.57.191.39|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-02-10 22:00:26 ERROR 404: Not Found.
How am I supposed to do this? Not everyone runs Minecraft servers in Windows with a full javascript-enabled GUI available for file downloads.