cURL / Mailing Lists / curl-library / Single Mail

curl-library

Uploading huge files using POST without MIME headers

From: Rahul Rathi <rahul.rathi2005_at_gmail.com>
Date: Mon, 17 Aug 2009 13:15:19 +0530

I am trying to POST huge files on a server. The server does not allow to do
PUT for this.

I tried using curl_formadd() for doing this. But the problem with this is it
inserts MIME headers and boundaries even if a single file is POSted. Is
there any of avoiding these MIME headers.

The CURL_POSTFIELDS aceepts a buffer for bindary data. But this is ok for
small buffers. When it comes to writing huge files this not useful.

Is there any way to POST huge files ? I don't want to do PUT.
Received on 2009-08-17