Toggle GPIO pins


I have a problem which I hope you can help me with. I am developing an java application which connects to the Digi Connect Wi-ME module (TCP/IP - the Wi-ME module is server). This works perfect, I receive data etc. But how do I toggle the GPIO pins on the Wi-ME module from my java application? My first thought was to send a “command” to the Wi-ME module through the open TCP/IP connection, but I can’t find anything about this in the documentation. Through the web interface to the Wi-ME module I can toggle the pins, so my next thought was to transmit the same as the web application i.e. some HTTP or some thing like that. Hope you can tell me how to do this correct? What is the best way?

I am using the standard firmware.

Thanks Denker