Controlling digital and analog pins using CC3000 HTTP server

I'm trying to control 2 motors in the motor shield using a wifi shield, I was wondering is it possible to send commands using the HTTP server feature of the CC3000 wifi shield from a android device? I'm trying to avoid using external web servers since our project has to be offline. Any suggestions on how to use HTTP server?