Invalid Content-Length in POST method

Invalid Content-Length in POST method

Post by n_sidhay » Mon, 03 Nov 2003 03:02:42



To all friends,

Right now I am developing mobile solution (MIDlet). In one of module I
wanted to post some data to resin HttpServer (Platform Unix variant). I got
the error Invalid Content-Length 23,23. While 23 is the actual length
passing to theHttpServer varying upon sending bytes. This happens if I
omitted Content-Length Header.

The interesting part is the same code works well in J2ME Simulator. In
simulator if I changed case of content-length then error occurs. But on
real device Nokia 3650 any way the server sends response Invalid Content-
Length 23, 23.

Is there is specific sequence to set request properties (POST Headers)?

Thanks in Advance.

./Nikhil
--
Using M2, Opera's revolutionary linux e-mail client:
http://www.yqcomputer.com/

_______________________________________________
XXXX@XXXXX.COM mailing list
http://www.yqcomputer.com/
To unsubscribe, send any mail to " XXXX@XXXXX.COM "
 
 
 

1. (method="post" || method="POST") && (method="get" || method="GET")

2. HTTPS POST Content-Length 0 after Update Q832894

After applying IE 6 update Q832894 (latest critical
update), we are seeing IE 6 send HTTPS POST requests to
our web server with Content-Length: 0, when it fact,
there is POST data in the submitted web page. This
occurs at random times. Most of the time any specific
web page works fine, but sooner or later it fails because
the web server receives the POST request with 0 Content-
Length header.

Removing this IE update restores normal operation with no
other changes to the web page content or web server
setup. So far, we have not seen this problem on HTTP
requests, only with HTTPS. A trace performed on our SSL
network appliance, shows the request was received from IE
6 with the Content-Length: 0 header.

Has anyone else experienced this problem? Is Microsoft
aware that it exists? My customers started seeing this
problem last week and research shows each machine which
sees the problem has recently installed Q832894.

Removing the update prevents the problem, but that's not
a good solution because we can not control the browser
used by the clients. All information is greatly
appreciated.

Chuck

3. IE Content-Length 0: IIS Security Config Causes Post Data Failure

4. POST requests with Content-Length: 0 from IE6

5. Download error Bad Gateway, invalid content length

6. How does IIS set the "Content-Length" header for dynamic content

7. Interpretation of http 1.1 Content-Length when delivering compressed content

8. Content-Length of mp3 not receving form content server

9. Invalid key length when increasing character type field to near maximum length

10. Wrong HTTP rule behaviour with POST method + content type

11. Get HTML content and POST method

12. WebRequest Set Content-Length for reply?

13. Sending compressed HTTP requests to Apache server:Content-Length I

14. double content-length header?

15. Issue with IIS 7.0 and Content-Length