invalid content-Length ERROR while uploading 2 GB of stream

hi all,        When Trying to upload 2GB of stream i got invalid content length error am running Apache as frontend server to mongrel and chrome as my browser. One more thing one i do it with mongrel alone am able to upload this 2 GB of stream ,cud anybody tell me whats the problem and how do i configure content length in apache??

hi all, When Trying to upload 2GB of stream i got invalid content length error am running Apache as frontend server to mongrel and chrome as my browser. One more thing one i do it with mongrel alone am able to upload this 2 GB of stream ,cud anybody tell me whats the problem and how do i configure content length in apache??

Older versions of Apache couldn't handle content-lengths > 2GB (obviously using a signed 32bit integer, I remember apache reporting negative content lengths and crazy stuff like that). You should probably determine whether your version is one of the affected ones and if so upgrade to a newer version ?

Fred

Frederick Cheung wrote:

From a shell on the server, type httpd -v and press return.

Walter

Walter Davis wrote:

From a shell on the server, type httpd -v and press return.

Walter

Walter i am running apche server on two different machine ,on one machine i am using apache that comes with XAMPP and when i type command httpd -v ,i got Server version: Apache/2.2.11 (Win32) Server built: Dec 10 2008 00:10:06 but on other machine where i am using apache that comes with instantrail 2.0 i got 'httpd' is not recognized as an internal or external command, operable program or batch file. why is it so??

Compare the results of the command

echo PATH

on both terminals.

Whenever you issue a command in a shell without using an absolute (root-relative) path to that command, like say, http instead of /usr/local/bin/httpd, you are asking the shell to fill in the missing bits for you. The way that works is the shell takes the path, one segment at a time (segments are separated by a colon in Unix, not sure if Windows respects that precedent), and prepends each segment before your command and sees if anything happens. If nothing does, it tries the next segment in the path until something works or it runs out of segments.

I suspect that your PATH environment variable is either empty or very short in the latter terminal, so this process is ending in failure.

Walter

and Walter what about my above problem invalid content length

Well, I thought that was explained earlier. You need to figure out what the server is running, and see if that is your problem. Sounds likely to me, but I'm not there, and I've never tried to run Apache on a Windows computer before. You might want to try a cheap and cheerful Unix hosting account somewhere as a development server, and see if you can get your application to work there.

Walter

Thanks Walter for your help..

Thanks Fred