demo basic socket to handle HTTP protocol