|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36704 missing HTTP_RAW_POST_DATA variable
Submitted: 2006-03-12 10:46 UTC Modified: 2006-03-12 22:37 UTC
From: ifyoumind at yahoo dot com Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.1.2 OS: Windows XP
Private report: No CVE-ID: None
 [2006-03-12 10:46 UTC] ifyoumind at yahoo dot com

  Am trying to use NUSOAP and it requires HTTP_RAW_POST_DATA variable
set. I have both the register_globals and always_populate_raw_post_data
on but still it gives me an error HTTP_RAW_POST_DATA. I read quiet a lot
of forum where almost in all places the question is clear and the answer
still is murky. It doesn't make any sense when
always_populate_raw_post_data turned on when I echo $HTTP_RAW_POST_DATA
it actually gives me an error!

Reproduce code:
print_r($_SERVER);//output doesn't have $HTTP_RAW_POST_DATA
print_r($GLOBALS);//output doesn't have $HTTP_RAW_POST_DATA
echo "$HTTP_RAW_POST_DATA"; //actually results in erro

Expected result:
$HTTP_RAW_POST_DATA should be available it can't be undefined.

Actual result:
Notice: Undefined variable: HTTP_RAW_POST_DATA in C:\Program Files\Apache Group\Apache2\htdocs\nusoap\myfirst.php on line 4


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-12 22:27 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

 [2006-03-12 22:37 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Check the always_populate_raw_post_data php.ini setting.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 03:01:28 2024 UTC