do_request: add ProxyHandler to allow requests through a proxy