refactored Http.by_curl