獲取您自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
import requests url = 'https://w3schools.tw/python/demopage.htm' #specify a cert to use as a client side certificate by setting the 'cert' parameter: x = requests.head(url, cert='folder/myclient.cert') print(x.status_code)
200