read client request and parse the HTTP data