fixed Issue 1233:improve webclient