cURL / Mailing Lists / curl-users / Single Mail

curl-users

Beginner question: Remote filename

From: Petr Lázňovský <lazna_at_volny.cz>
Date: Sat, 15 Mar 2014 19:53:13 +0100

Following command send form content and file to the cgi script. It works fine, but filename in the server is "1file" instead of "config.bin" even if I set remote name by: -F "f1=@config.bin;filename=config.bin"

what am I doing wrong?

thanks, L.

curl -F "cmd=newticket" -F "do=1" -F "name=Joe" -F "email=Joe@Blow.com" -F "subject=this is my subject" -F "problem=text message" -F "name=f1" -F "f1=@config.bin;filename=config.bin" "http://sub.host.com/xxx.cgi"

-------------------------------------------------------------------
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 2014-03-15