Fix port of httpinput