Getting the size of the current download

Discussion in 'BukkitDev Information and Feedback' started by hawkfalcon, Oct 20, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    hawkfalcon

    It appears that while fixing dl.bukkit.org, the header file was changed slightly. So, for anybody who wants it, here is how I get the current size of the craftbukkit.jar.
    Code:
    curl -LSI "http://dl.bukkit.org/downloads/craftbukkit/get/latest-rb/craftbukkit.jar" | grep 'Content-Length' | cut -d ' ' -f 2
    
    EDIT:
    Linux/mac only, unless you have cURL on your windows computer.
     
    jtjj222 and lol768 like this.
  2. Offline

    Gravity

    It works on windows, you just have to have curl setup :3
     
  3. Offline

    hawkfalcon

    True, I meant built in. :p
     
  4. Offline

    Sushi

    Many linux distributions do not have curl built in.
     
  5. Offline

    Lolmewn

    apt-get install curl *should* fix that I think.
     
  6. Offline

    Sushi

    ...if you use a debian based distro
     
  7. Offline

    Lolmewn

    Hurray for debian :D
     
Thread Status:
Not open for further replies.

Share This Page