Basic handler for server communication