I'm using Fiddler to POST data to a webservices endpoint.
URL:
http://localhost/moodle/webservice/rest/server.php?wstoken=011ea2f81ad592033ed197d2a4956d6d&wsfunction=local_wstemplate_hello_world
POST Data: blah=12345
in /webservice/rest/server.php, line ~35, (before anything really gets executed, I have:
die(var_export($_POST).var_export($_GET));
Which outputs:
array (
)
array (
'wstoken' => '011ea2f81ad592033ed197d2a4956d6d',
'wsfunction' => 'local_wstemplate_hello_world',
)
It is not reading the post data at all. Is there something I'm missing or a setting I need to turn on?
Moodle Version: 2013051402.02
Edit:
Using the default WStemplate, "Client.php", which creates an XMLRPC request - the script POSTs a variable to modify what the welcome message is. So instead of "Hello World" - I can set $welcomemsg = 'asdfasdfasdf, '; This data is POSTed to the server.
No matter what I set this parameter to, the output never changes. ($_POST is empty). The response is always "Hello World, Patrick" (The parameter default).