handleHTTP fully working