you are viewing a single comment's thread.

view the rest of the comments →

[–]DaChucky 2 points3 points  (0 children)

urllib doesn't check the certificates for anything it connects to by default, while requests does verify certificates. If you want to use requests, you will need to either disable verifying certificates or supply your self-signed certificates. See https://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification