Refactor http request.
Friendly input method.