cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: https upload failed

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Jun 2006 17:23:58 +0200 (CEST)

On Wed, 14 Jun 2006, Zheyi Ji wrote:

> I tried to upload a file per curl to a https-site, but got the following
> error:
>
> org.apache.commons.fileupload.FileUploadException: the request was
> rejected because no multipart boundary was found
>
> Here is the command:
> curl -q -S -K <configure_file> --data-binary @/test.curl -v <url>
>
> Does anyone have an idea? Thanks

Yes, you're not uploading it as a multipart form-post so the receiving end of
course doesn't find anay "multipart boundary".

You should use -F and not -d to do that post.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-06-15