A simple implementation using socket to get web contents