cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using cURL passing 55 items, only processing 34

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 13 Oct 2011 15:20:42 -0700

On Thu, Oct 13, 2011 at 11:28:57AM -0400, Jeannie Schreitmueller wrote:
> Can you please let me know what I need to configure in the command so it will
> not truncate the data being passed? I am passing 55 items and it's only
> processing 34.  The size is approx 4K. We are using aix 6.1 and cURL 7.21.3.
>
> I've tried:
> -adjusting the "Content-Length"
> -using a different cURL version 7.9.3
> -using a different aix version 5.3
>
> but still get the same result. Thanks for your time.
>
> COMMAND PASSED
> curl -s -v "http://10.9.9.999:8082/cgi-bin/cgictlpgm.pgm?callpgm=AL0010
> R&request=<?xmlversion="1.0"?><VSIEnvelope><MessageType>AllocationRequest</
> Messa
> geType><Message><WabID>665590_at_55</WabID><DateTimeStamp>20111012_122834_jschreit
[etc. for another 11KB]

You're likely hitting a shell limit on the command size. You can work around
this in a number of ways; these two are the most obvious. You could put
the commands into a file and use the --config option. Or, you could
put the request= data into a file and use the --data option with a @
prefix to specify the data from a file. You'll need the --get option in
the latter case to do a GET request instead of the default POST.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-14