ID EN
Urllib Request

http_error_301

Python 3.11

Redirect to the Location: or URI: URL. This method is called by the parent OpenerDirector when getting an HTTP ‘moved permanently’ response.

Syntax

PYTHON
HTTPRedirectHandler.http_error_301(req, fp, code, msg, hdrs)

See Also

OpenerDirector