when update it tells server

Discussion in 'Plugin Development' started by mrzeapple, Mar 14, 2013.

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

    mrzeapple

    When there is an update it tells the server
     
  2. Offline

    AmShaegar

    Where is your question?
     
  3. Offline

    mrzeapple

    sorry how would i do the update teller
     
  4. Offline

    AmShaegar

    You would either need a command or a scheduled task that requests some kind of version.txt file from your webserver.
    If versionNew > versionServer tell admin.
     
  5. Offline

    mrzeapple

    how would i get it to read the version.txt on my webserver
     
  6. Offline

    AmShaegar

    You would need to issue a HTTP request. Google will give you tons of tutorials.
     
  7. Offline

    mrzeapple

    I'm sorry I'm not to good at java but would it be a http get request?
     
  8. Offline

    AmShaegar

    It would. POST is only used when sending data with it. If you submit a form on a website, this is a POST request. You don't need that. Just plain GET with a URL like http://domain.tld/version.txt
     
  9. Offline

    microgeek

    Learn Java.
     
    turqmelon likes this.
Thread Status:
Not open for further replies.

Share This Page