1.refactor the http request method;