I found that when I post an empty input field to my php script via REST api, it's not empty, but it's value is the name of my variable.
Any suggestions?
I found that when I post an empty input field to my php script via REST api, it's not empty, but it's value is the name of my variable.
Any suggestions?
Hello.
We tried to reproduce the problem.
Please clarify do you use json, xml or x-www-url-form-encoded format?
Do you have Tiggzi proxy checked?
json, POST
proxy enabled
Thank you. We are testing.
Any progress on this?
We are working on it. I'll update when have news.
Can you post a curl command that works correctly with your service?
I'm not using curl and I don't know why do you need it. To reproduce the problem you just need to create input field with "submit" button and attach json/post service to it. Then in php script do the following:
$val = json_decode($HTTP_RAW_POST_DATA, true);
echo $val['_test'];
test is the name of your input field in tiggzi. If you post it empty, its value will be 'test', not empty.
Because I need to see a working request against your service.
the problem is not in my service! my service receives json data with non-empty values from tiggzi ... so, you better reproduce the problem on your server.