Fix @http nil issue when calling get from Connection

... uploaded image, it will use this get method. refactor a little as well.