Sunday, November 10, 2002, 1:26:43 PM, Melvyn Sopacua wrote:
> Read up on the 'enctype' attribute of forms and/or use
> enctype="multipart/formdata" and upload a file, with an extension, that 
> isn't known by your browser (.foobar would be a good guess).

Using telnet and raw http

REQUEST
  POST /test_post_data.php HTTP/1.0
  Host: www.example.com
  Content-type: spam/spam
  Content-length: 17

  data=Test&op=Post

PHP 4.2.3 REPLY
  HTTP/1.1 200 OK
  Date: Sun, 10 Nov 2002 13:42:26 GMT
  Server: Apache/1.3.27 (Unix) PHP/4.2.3
  X-Powered-By: PHP/4.2.3
  Connection: close
  Content-Type: text/html

  $_POST:
  array(0) {
  }
  $HTTP_RAW_POST_DATA
  string(17) "data=Test&op=Post"

PHP 4.3-dev REPLY
  HTTP/1.1 200 OK
  Date: Sun, 10 Nov 2002 13:40:17 GMT
  Server: Apache/1.3.27 (Unix) PHP/4.3.0-dev
  X-Powered-By: PHP/4.3.0-dev
  Connection: close
  Content-Type: text/html

  $_POST:
  array(0) {
  }
  $HTTP_RAW_POST_DATA
  NULL


Since $_POST isn't populated I am assuming neither version of PHP
recognizes my spam/spam content type, but the current cvs version fails
to populate $HTTP_RAW_POST_DATA. So either my request is wrong and 4.2.3
is accepting invalid input, or something has changed in PHP and it isn't
handling the POST request as expected anymore.
  
--
Kjartan <[EMAIL PROTECTED]> (http://natrak.net/)
:: "Bad Command or File Name. Good try, though."


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to