Modified CGI script for my Android app.