http-content-length

What content length should I send when I am encoding data with gzip?

I am writing a small web server and would like to send gzipped data. In the http header for the Content-Length field do I set the length of the compressed data or the length of the uncompressed data? ...

textarea occasionally missing in $_POST but content_length always correct ?

A strange bug has popped up on a server running a fairly active site. Server: Apache/2.2.3 (CentOS) PHP: 5.2.6 eAccelerator 0.9.5.3 While using multipart forms, occasionally data sent from a textarea will be missing in the $_POST We know the data was sent because content_length shows a reasonable size over 1K All other input fiel...

WCF Content-Length HTTP header on outbound message

I'm in a tough situation in which a Java web service endpoint hosted on an IBM HTTP Server (IHS) requires a Content-Length header, although it supposedly conforms to HTTP/1.1. If I send the header, everything works. If I leave it off, I get a 500 error response informing me that my POST entity body was empty (even though it was not). We...

How do I get a responseLength for a HttpWebRequest upload from another webfile I want to stream into the upload when the source webserver doesn't implement ContentLength???

Hi, Background - I'm trying to stream an existing webpage to a separate web application, using HttpWebRequest/HttpWebResponse in C#. One issue I'm striking is that I'm trying to set the file upload request content-length using the file download's content-length, HOWEVER the issue seems to be when the source webpage is on a webserver fo...

HTML-Form not Posting? Content-Length: 0 (in HttpFox)

Literally yesterday an application I am developing does not post any form inputs and instead using HttpFox watch tool I am seeing the following as the POST data. Content-Type: application/x-www-form-urlencoded Content-Length: 0 When running the application locally with ASP.NET development server I cannot post the form using any browse...