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: 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

These mail archives are generated by hypermail.

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

File upload with ASP.NET