in reply to How to change content-length in CGI

How can i increase the content-length while posting?

Can't you set it? With something like:

$request->header('Content-Length', "$the_length");

Check the http specs for the correct usage of content-length, i.e. apparently decimal number of OCTETs.

Also see: sending a large file via http.

HTH,
dHarry