Just an idea - you might check out the TCP functions on the Communications subpalette. They should allow you to communicate to and from the standard HTTP port on your web server. Disclaimer: this is how I would start it. I have not done anything like it before.
2 cents