If you want to post your app inventor app, you have to export it as .aia (click on the projects drop down, choose export project to my computer), and upload that.
The htm file is totally useless.
You need a When Web1.GotText event block and your result will be in the responseContent variable.
If you receive a response that is different from what you thought it should be, then the way to debug this is to open a browser on your PC, and type
http://YOUR URL/gpio/0 or
http://YOUR URL/gpio/1 and see what happens.
Post your results here if you still have problems.
Cheers, Ghica.