$_POST Not being created

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
markacola
Posts: 1
Joined: Fri Jan 23, 2015 12:39 pm

$_POST Not being created

Post by markacola » Tue May 05, 2015 2:52 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: $_POST Not being created

Post by FourthWorld » Tue May 05, 2015 4:05 am

WHich OS version?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Peter Wood
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 92
Joined: Mon Jul 06, 2009 4:53 am
Location: Bamboo River

Re: $_POST Not being created

Post by Peter Wood » Tue May 05, 2015 7:03 am

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.

Post Reply

Return to “CGIs and the Server”