cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: setting filename="" when using -F take 2

From: Bill Mercer <bmercer_at_nccer.org>
Date: Mon, 18 Jun 2012 20:09:34 +0000

If it's a problem with how the variables are being parsed, you might want to try
sing --form-string instead of -F.

What's the purpose of the empty filename anyway?

>-----Original Message-----
>From: curl-users-bounces_at_cool.haxx.se [mailto:curl-users-
>bounces_at_cool.haxx.se] On Behalf Of Weedy
>Sent: Wednesday, June 13, 2012 1:27 AM
>To: curl-users_at_cool.haxx.se
>Subject: setting filename="" when using -F take 2
>
>Resending since I got no reply last time...
>
>I am having no luck using curl to POST. I have been able to completely
>copy the FF/chrome/whatever request except for filename="".
>
>firefox
>-----------------------------19478373523277830581955243261
> Content-Disposition: form-data; name="file"; filename=""
> Content-Type: application/octet-stream
>
>
>-----------------------------19478373523277830581955243261
>
>curl
>032d: ------------------------------e053dca3715a
>0359: Content-Disposition: form-data; name="file"
>0386: Content-Type: application/octet-stream
>03ae:
>03b0:
>03b2: ------------------------------e053dca3715a--
>
>What am I missing? Neither -F
>file=""\;filename=""\;type=application/octet-stream or
>'file="";filename="";type=application/octet-stream' work.
>
>0359: Content-Disposition: form-data; name="file"
>0386: Content-Type: application/octet-stream
>03ae:
>03b0: ;filename=
>
>0359: Content-Disposition: form-data; name="file"
>0386: Content-Type: application/octet-stream
>03ae:
>03b0: "";filename=""
>
>
>Thank you for your time.
>-------------------------------------------------------------------
>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

-------------------------------------------------------------------
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 2012-06-18