Page 1 of 1

$_POST Not being created

Posted: Tue May 05, 2015 2:52 am
by markacola
Hi All,

I've been getting a strange issue lately with a couple of the pages i have on my server.

When posting data to these pages the post globals, $_POST; $_POST_RAW; and $_POST_BINARY, don't exist, and therefore i cannot access any of the data posted to the page.

I've check the requests to the page and they are definitely posting data, and the $_SERVER["REQUEST_METHOD"] is "POST", so its not a client issue.

I'm just wondering if anyone else has come across this or might know why its happening?

Regards,

Mark

Re: $_POST Not being created

Posted: Tue May 05, 2015 4:05 am
by FourthWorld
WHich OS version?

Re: $_POST Not being created

Posted: Tue May 05, 2015 7:03 am
by Peter Wood
I think it is a bug. The $_POST variables are empty when the Content-Type is "application/x-www-form-urlencoded; charset=UTF-8".

If you can use a Content-Type of "text/plain", the $_POST variables will contain data.

I submitted a bug report http://quality.runrev.com/show_bug.cgi?id=15173 on 8th April but it still hasn't even been acknowledged by LiveCode.