upload - POST an mp3 file using CURL -
I'm looking for different configurations to post MP3 files through the curl for a few hours, but No one is working, the most recent form on which I have decided looks like this:
Curl-F "file=@multipartEncode.txt; type = audio / mpeg" -a " Mozilla / 5.0 "
Multipart encoded MP3 files on the server in this format (I sent the encoded information first in multipart enc ..txt) Is required, even though it always fails. I tried to do it this way and with @ and & lt; Changed. I know of a fact that the server is working because when I point to the action parameter of the html form directly on the server then it's okay. So it means that I'm missing something in my curl request .... but what can this be ???
curl -f "file =@myfile.mp3; type = audio / mpeg" A "Mozilla / 5.0" http://65.173.255.180:8000/accounts/user/songs/
Comments
Post a Comment