test httpfunc.js