urllib.request.urlopen fails with https
Gregory Ewing
greg.ewing at canterbury.ac.nz
Wed Mar 14 19:27:48 EDT 2018
Chris Angelico wrote:
> (Basically,
> what you're doing is downgrading the protection of HTTPS to something
> nearer plain HTTP. That's fine for what you're doing, but any code you
> give to students is likely to be copied and pasted into their
> production code.)
>
> See if you can tie in with your OS's cert store first. If you can't,
> look at "import ssl" and creating a custom SSL context that doesn't
> verify.
That's likely to distract and confuse students as well.
I would suggest looking for a different example that
doesn't require interacting with an https site.
--
Greg
More information about the Python-list
mailing list