Why am I getting this error in python ? (httplib)

后端 未结 10 1706
情话喂你
情话喂你 2020-11-27 20:11
if theurl.startswith(\"http://\"): theurl = theurl[7:]
    head = theurl[:theurl.find(\'/\')]
    tail = theurl[theurl.find(\'/\'):]
response_code = 0
import httplib         


        
10条回答
  •  盖世英雄少女心
    2020-11-27 20:41

    I saw this error when trying to access a HTTPS/SSL URL using httplib.HTTPConnection

    You should use httplib.HTTPSConnection to access SSL urls.

提交回复
热议问题