best way to communicate with a server?

look at pachube com (this is my first post so it doesn't let me put the dot in) it's open source and let's you do input and outputs - look on the tutorials. They also have some arduino code. I've only used it for output where I send data to the pachube server.