cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: post textarea field with the content from a text file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Oct 2006 22:40:31 +0200 (CEST)

On Wed, 4 Oct 2006, Qianqian Fang wrote:

> By duplicating the http header captured by LiveHTTPHeader, now I can submit
> files to wiki with the attached perl script. However, I found there is a
> limitation, when submitting text files with size greater than ~100k, the
> script returned with no error message, but no data was posted.
>
> I don't know if this is related to the maximum length for sh command line (I
> can not find the limit on the web), or it is curl's limit? and if there is a
> way to get around?

The exact command line limit depends on your particular shell, but it could
very well be that limit you've hit. Try using "-d @file" or "-d @-" to read
the data to post from a file or stdin to circumvent that limitation.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-10-04