cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET