|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-06 14:37 UTC] napolium at sudac dot org
I seams like PHP does not care about the Content-length sent by the browser when decoding POST requests. And IE seams to add a trailing \r\n at the end of the POST string that is not included in the Content-length. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
I seams like PHP does not care about the Content-length sent by the browser when decoding POST requests. And IE seams to add a trailing \r\n at the end of the POST string that is not included in the Content-length. Exmaple code: <html> <?php echo "a=".urlencode($_POST["a"])."<br>"; echo "b=".urlencode($_POST["b"])."<br>"; ?> <form action="test2.php" method="post"> a:<input type="text" name="a"><br> b:<input type="text" name="b"><br> <input type="submit"> </form> </html> Posting "foo" in a and "bar" i b results in this output in IE: a=foo b=bar%0D%0A and in Mozilla: a=foo b=bar