Page 1 of 3

Empty input field is not really empty.

Posted: Tue Nov 27, 2012 5:47 pm
by Essay Writing Service

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?


Empty input field is not really empty.

Posted: Wed Nov 28, 2012 1:52 pm
by Kateryna Grynko

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?


Empty input field is not really empty.

Posted: Wed Nov 28, 2012 2:02 pm
by Essay Writing Service

json, POST
proxy enabled


Empty input field is not really empty.

Posted: Wed Nov 28, 2012 3:11 pm
by Kateryna Grynko

Thank you. We are testing.


Empty input field is not really empty.

Posted: Thu Nov 29, 2012 9:34 pm
by Essay Writing Service

Any progress on this?


Empty input field is not really empty.

Posted: Fri Nov 30, 2012 10:22 am
by Kateryna Grynko

We are working on it. I'll update when have news.


Empty input field is not really empty.

Posted: Sat Dec 01, 2012 4:25 am
by maxkatz

Can you post a curl command that works correctly with your service?


Empty input field is not really empty.

Posted: Sat Dec 01, 2012 9:05 pm
by Essay Writing 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.


Empty input field is not really empty.

Posted: Sat Dec 01, 2012 9:18 pm
by maxkatz

Because I need to see a working request against your service.


Empty input field is not really empty.

Posted: Sat Dec 01, 2012 10:03 pm
by Essay Writing 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.