This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author James Allsopp
Recipients James Allsopp
Date 2019-10-08.09:51:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570528263.82.0.631134670905.issue38408@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-10-08 09:51:03James Allsoppsetrecipients: + James Allsopp
2019-10-08 09:51:03James Allsoppsetmessageid: <1570528263.82.0.631134670905.issue38408@roundup.psfhosted.org>
2019-10-08 09:51:03James Allsopplinkissue38408 messages
2019-10-08 09:51:03James Allsoppcreate