cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Submitting form data breaks on various occasions

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Mar 2008 10:08:37 +0100 (CET)

On Mon, 24 Mar 2008, MK wrote:

> Because of this, I tried to store this markup in a file instead, and pass
> this file as the argument to -F:
>
> $ curl (url) -F mydata=<./thefile.txt

This probably gets weird since the < letter is treated special by the shell.
Try putting that whole argument within quotes.

> Now I don't get this error anymore, but the temporary file cURL creates
> for uploading (why does it create temporary files from my input file
> anyway instead of reading directly from it?)

curl doesn't create a temporary file and it never did.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-24