httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54218] POST value duplicated when passed to PHP
Date Wed, 28 Nov 2012 17:19:19 GMT

--- Comment #5 from Scott Arciszewski <> ---
(In reply to comment #4)
> What did the client put on the wire?
> What did PHP see?
HttpRequester says:

POST https://[domain]/test.php
Content-Type: application/x-www-form-urlencoded

 -- response --
200 OK
Date:  Wed, 28 Nov 2012 17:09:35 GMT
Server:  Apache
Accept-Ranges:  bytes
X-Powered-By:  PHP/5.4.9-1~dotdeb.0
Strict-Transport-Security:  max-age=15768000
Keep-Alive:  timeout=15, max=100
Connection:  Keep-Alive
Transfer-Encoding:  chunked
Content-Type:  text/plain
array(1) {
  string(13) "Blahmenu=Blah"
> What does a non-PHP CGI think the body was?
  use strict;
  use CGI ':standard';
  # written by steve andrews 20060222, 20071107
  # modified for this bug report

  print "Content-Type: text/html\n\n";
  print "<html>\n<head>\n<title>Your Answers</title>\n";
  print "<style type='text/css'>\n  th {background-color: coral; }\n</style>";
  print "</head>\n<body>\n";
  print "<table style='border: thin solid black;' ";
  print "border='1' >\n";
  print "<tr>\n<th>Field:</th><th>Value:</th>\n</tr>";
  foreach my $name ( param() ) 
      my @values = param ($name);
      print "<tr>\n";
      print "<td>$name</td><td>@values</td>\n";
      print "</tr>\n";
  print "</table>\n</body>\n</html>\n";

Field:    Value:
menu    Blah

So is this a PHP 5.4 bug?

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message