title: curl post request jquery equivalent
body: <p>I want to use echoprint - <a href="http://echoprint.me/start" rel="nofollow">http://echoprint.me/start</a> - to send an mp3 file locally from my computer in a post request in order to retrieve this song's details from their server. I am trying to write this post request in jquery in my text editor to retrieve a json object with the song details so I can view this in my browser's console, and then use the data from there. Their website explains how to make this post request by using curl for which the following code works in the command line. This returns a json object, however this is in the terminal so isn't much use to me as far as I know.</p>
  
  <pre><code>curl -F "api_key=################" -F "filetype=mp3" -F "track=@audio.mp3" "http://developer.echonest.com/api/v4/track/upload"
  </code></pre>
  
  <p>I want to make this request using jquery in my text editor so I can make the same request and retrieve the json data in the browser's console.</p>
  
  <p>I have tried this code but unfortunately it doesn't work</p>
  
  <pre><code>   $.post("http://developer.echonest.com/api/v4/track/upload?api_key=############&amp;url=http://tylergrund.com/mp3/MP3s%20from%20home/Coldplay/01%20Speed%20Of%20Sound.mp3" )
    .done(function( data ) {
      console.log( data );
    });
  </code></pre>
  
  <p>Can anyone provide the appropriate code. There are instructions here <a href="http://developer.echonest.com/docs/v4/track.html" rel="nofollow">http://developer.echonest.com/docs/v4/track.html</a> but they only explain how to do this using curl. Any help would be greatly appreciated. I am a beginner to this so please go easy.</p>