ID EN
Urllib Request

set_proxy

Python 3.11

Prepare the request by connecting to a proxy server. The host and type will replace those of the instance, and the instance’s selector will be the original URL given in the constructor.

Syntax

PYTHON
Request.set_proxy(host, type)