parse the response from the URL