cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl: argument list too long

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Tue, 20 Jul 2004 10:38:48 +0200

Shane Russo wrote:

> Is there a workaround for this (can I load the arguments in via a file
> and get around the argument list limit in that way?)

Famous saying: "If all else fails, try the manual". :-)

Quote from the man page:

"If you start the data with the letter @, the rest should be a file name
to read the data from, or - if you want curl to read the data from
stdin. The contents of the file must already be url-encoded. Multiple
files can also be specified. Posting data from a file named 'foobar'
would thus be done with --data @foobar."

So, put the data in a file, and use -d @<filename>.

Linus
Received on 2004-07-20