Python實現的檢測web服務器健康狀況的小程序

python urllib如何獲取http狀態碼 f=urllib.urlopen("xxxxxx") print f.getcode() #這就是獲取返回的狀態碼 404 200等 python 服務器狀態探測3種方法 1、 關鍵字分析  import os  #https網站加-k cmd = ''' (curl --no-keepalive --connect-timeout 18 --st
相關文章
相關標籤/搜索