Read http request until the request finish and then send to server