- slightly optimized HttpUtil.