cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Scott Manicke <smanicke_at_gmail.com>
Date: Mon, 21 Jul 2008 10:51:56 -0400

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

Output from Script
./cmd.sh: line 1: /root/curl/bin/curl: Argument list too long

After testing by reducing the lines by one each iteration this works. So it
seems line3000 is just over the limit?

curl -s -k -b session.txt -F "textWindow=line0 line0 line0 line0 line0
line1 line1 line1 line1 line1
line2 line2 line2 line2 line2
.
line2994 line2994 line2994 line2994 line2994
line2995 line2995 line2995 line2995 line2995" https://localhost/custom.task

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