urllib’s `geturl()` is your friend here!
But honestly, if you’re doing a lot of HTTP stuff, just switch to `requests`. It’s way cleaner:
```python
import requests
r = requests.get("http://example.com")
print(r.url)
```
No fuss, no mess.
But honestly, if you’re doing a lot of HTTP stuff, just switch to `requests`. It’s way cleaner:
```python
import requests
r = requests.get("http://example.com")
print(r.url)
```
No fuss, no mess.
