code to run task using URL