cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: New User - Help with https POST

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 18 Nov 2002 23:56:49 +0100 (MET)

On Mon, 18 Nov 2002, Mark Hill wrote:

> That's it, thanks! One more question though... I have to send this file
> up without the CR/LF that are attached to it by the creator. I tried to
> use '--data-binary option', but that returns "You can only select one HTTP
> request!" Is there a way I can accomplish this, or will I need to alter
> the file before attempting to send it.

The option -F "Filename=@filename" uploads the file exactly as it is. If you
want to upload it differently than it is currently stored, you better modify
it first and then upload it.

--data-binary is if for regular POSTs, not multipart formposts.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
Received on 2002-11-18