cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Many New Lines in multipart/form-data post

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 21 Jul 2008 10:41:15 -0700

On Mon, Jul 21, 2008 at 10:51:56AM -0400, Scott Manicke wrote:
> To try to re-create the issue I have decided to simply call the curl
> binary in a plain bash script using a newer version of curl as per your
> recommendation. If I limit the lines to line 2995 it works, but line3000
> does not. See below. Is this an operating system limitation (RedHat ES
> 3) or curl?
>
>
> # curl -V
> curl 7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a zlib/1.1.4
> Protocols: tftp ftp telnet dict ldap http file https ftps
> Features: Largefile NTLM SSL libz
>
> #Snippet of (cmd.sh)
> curl -s -k -b session.txt -F "textWindow=line0 line0 line0 line0 line0
> line1 line1 line1 line1 line1
> line2 line2 line2 line2 line2
> .
> line2999 line2999 line2999 line2999 line2999
> line3000 line3000 line3000 line3000 line3000" https://localhost/custom.task

This looks like a limit on the command-line length. You can get around it
by putting all the data into a file and referencing it with the "<" syntax
in the -F option.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-21