simple application that contact server and write a response