cURL / Mailing Lists / curl-users / Single Mail

curl-users

How can I append a slash to the URL of a PUT command?

From: Josh Mahoney <josh_at_mahoney.com>
Date: Mon, 13 May 2013 10:26:31 -0700

Hi All,

I have also posted this question here:
http://stackoverflow.com/questions/16516058/append-trailing-slash-to-curl-file-upload

I'm doing the following cURL command:
curl -i -b cookie.txt -X PUT -T "somefile.txt" http://myserver/api/upload/

However, I need the url to have a trailing slash, but the result is "
http://myserver/api/upload/somefile.txt". Is there a way to get a slash
appended at the end?

Thank you,
Josh

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-13