change GetWebResource to support http proxy.