Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2011
    Posts
    202

    MusicIP Refresh Songs via Script / commandline

    I've running a musicip headless server with linux. As i sometimes forget to refresh the songs, i thought i can automate this.

    When i enter this url: http://IP:10002/server/refresh? into a web browser, the refresh starts.

    What does not work is the same via a curl -X POST http://IP:10002/server/refresh?

    Does someone have a hint to get this going?

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,586

    MusicIP Refresh Songs via Script / commandline

    > When i enter this url: http://IP:10002/server/refresh? into a web
    > browser, the refresh starts.
    >
    > What does not work is the same via a curl -X POST
    > http://IP:10002/server/refresh?


    A URL which you can enter in your browser's URL field is a GET request.
    What you tried using curl is a POST, usua.ly used to send some data to
    the server. Just remove "-X POST" from your command to have curl do a
    GET (which is the default verb used) like the browser would do. Does
    that work?

  3. #3
    Senior Member
    Join Date
    Mar 2011
    Posts
    202
    Whoah!
    If everything would be that easy ......
    Thanks Michael!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •