Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0
October 13, 2010 05:27 PM
hobodave
When HTTP POST data does not fit into a single TCP packet (1448 bytes) the POST data in subsequent packets is not shown in $_POST in MacGDBp.
This can be demonstrated with the following sample:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Title</title>
</head>
<body id="body">
<form action="#" method="post" accept-charset="utf-8" id="myform">
<?php for ($i=0;$i<100;$i++): ?>
<label for="form-data-<?php echo $i ?>"><?php echo "Data $i" ?></label>
<input type="text" name="form[data::<?php echo $i ?>]" value="<?php echo $_POST['form']["data::$i"] ?>" id="form-data-<?php echo $i ?>"/>
<?php endfor?>
<p><input type="submit" value="Submit →"/></p>
</form>
<?php var_dump($_POST) ?>
</body>
</html>
This can be demonstrated with the following sample:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Title</title>
</head>
<body id="body">
<form action="#" method="post" accept-charset="utf-8" id="myform">
<?php for ($i=0;$i<100;$i++): ?>
<label for="form-data-<?php echo $i ?>"><?php echo "Data $i" ?></label>
<input type="text" name="form[data::<?php echo $i ?>]" value="<?php echo $_POST['form']["data::$i"] ?>" id="form-data-<?php echo $i ?>"/>
<?php endfor?>
<p><input type="submit" value="Submit →"/></p>
</form>
<?php var_dump($_POST) ?>
</body>
</html>
September 11, 2019 05:01 AM
Robert
This is resolved in 2.0.
On September 11, 2019 05:01 AM, Robert changed:
- Status from "Unconfirmed" to "Closed"
- Resolution from "Open" to "Fixed"