Value of POST variable disappearing in PHP
Posted: Fri Jul 10, 2009 5:47 am
This is a weird one.
I have a Flex app which posts some data to PHP via an HTTP post. In the development environment it worked perfectly, in one client's site it works fine, but not on anothers.
The HTTP post has 3 variables, type, name and data.
type and name are just short text fields and work fine.
data is binary but is base64-encoded, and normally works fine, but on this new client set-up it stops working when the data gets to about 48K.
I used the Live HTTP Headers in Firefox, and can see that the data is definitely being sent, but when trying to access it in PHP it gets...
Notice: Undefined index: data in /server.php on line 67
48K doesn't seem like it should be breaking any limits, and the fact that it works with larger data on other setups makes me think it is a config thing, but what...?

Any ideas appreciated!
I have a Flex app which posts some data to PHP via an HTTP post. In the development environment it worked perfectly, in one client's site it works fine, but not on anothers.
The HTTP post has 3 variables, type, name and data.
type and name are just short text fields and work fine.
data is binary but is base64-encoded, and normally works fine, but on this new client set-up it stops working when the data gets to about 48K.
I used the Live HTTP Headers in Firefox, and can see that the data is definitely being sent, but when trying to access it in PHP it gets...
Notice: Undefined index: data in /server.php on line 67
48K doesn't seem like it should be breaking any limits, and the fact that it works with larger data on other setups makes me think it is a config thing, but what...?
Any ideas appreciated!