Message354180
Hi,
I like to build my Url's using url unparse, e.g.
site_to_test = urllib.parse.urlunparse((scheme, host, page, '', '', ''))
r = requests.get(site_to_test)
However, we reach a lot of sites through SSH tunnels, as our network is heavily locked down, and need to specify a port. Unfortunately, we can parse a url with a port, and get site_to_test.port = '9097' we can't run it the other way, e.g. this fails.
site_to_test = urllib.parse.urlunparse((scheme, host, page, '', '', '',port=9097))
This should be easy to fix and there's a use case for it.
Thanks |
|
Date |
User |
Action |
Args |
2019-10-08 09:51:03 | James Allsopp | set | recipients:
+ James Allsopp |
2019-10-08 09:51:03 | James Allsopp | set | messageid: <1570528263.82.0.631134670905.issue38408@roundup.psfhosted.org> |
2019-10-08 09:51:03 | James Allsopp | link | issue38408 messages |
2019-10-08 09:51:03 | James Allsopp | create | |
|