PyDocs

Nav

Internet Protocols and Support

HTTPResponse.geturl

http.client

method of HTTPResponse (source) Deprecated 3.9not WASI
  • HTTPResponse.geturl()
Deprecated since 3.9. Deprecated in favor of url.
Return the real URL of the page.

In some cases, the HTTP server redirects a client to another
URL. The urlopen() function handles this transparently, but in
some cases the caller needs to know which URL the client was
redirected to. The geturl() method can be used to get at this
redirected URL.
0 Examples
No examples for http.client/HTTPResponse.geturl.
See Also
No see-alsos for http.client/HTTPResponse.geturl
0 Notes
No notes for HTTPResponse.geturl