improved HTTP logic (new Input and Url interfaces)