REFACTOR: httpCreateUri

make consistent with GoAhead
simplify to make it easier to prove correct