I have used the API of BaiduMap, and the port of API's configuration is * to keep my connection with the API, but the terminal still told me the protocol error. It's my first time using requests package. I've install certifi, but it doesn't work.
- Welcome to SO. You might find reading the site help section useful when it comes to asking a good question, and this question checklist. Code that you have worked on should include a minimal reproducible example, and be included in your questionchill0r– chill0r2022-03-22 13:44:29 +00:00Commented Mar 22, 2022 at 13:44
Add a comment |
3 Answers
Requests library needs to verify SSL configuration.
You need to add verify option like that
requests.get('https://www.example.com', verify=False) 1 Comment
FatDragon
thanks 4 your help.Its my computer's question for I enabled network manual proxy. when I turned off my proxy, SSL configuration was verified.