cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Emtpy filename on form-data post

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 16 Feb 2005 22:42:19 +0100 (CET)

On Wed, 16 Feb 2005 kristis.makris_at_asu.edu wrote:

> -----------------------------23010741916212
> Content-Disposition: form-data; name="bindingsFile"; filename=""
> Content-Type: application/octet-stream
>
> This does not work:
>
> $ curl -F 'bindingsFile=@;type=application/octet-stream' 127.0.0.1
> curl: (26) failed creating formpost data

Try this approach:

         curl -F 'name=@file;filename=' http://127.0.0.1

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-16