app inventor 2 POST

Karel Borovský picture Karel Borovský · Oct 26, 2014 · Viewed 17.3k times · Source

I want to integrate a webviewer component in an appinventor app.

I want the app to POST something to already prepared PHP script. I do not want to use GET. So PHP on server looks like:

<?php echo $_POST['value']; ?>

My appinventor block looks like:

enter image description here

This is NOT working. Any help appreciated. Thanks.

EDIT: 2nd try. Thank you @YiWei. enter image description here

Answer

YiWei picture YiWei · Nov 12, 2014

add requestheaders:content-type:application/x-www-form-urlencoded and buildrequestData

enter image description here