0
我們正試圖通過我們的代理拒絕Virustotal API。 HTTP網站可通過代碼訪問,但HTTPS未通過。請求你們任何人發佈幾個有助於我們的示例代碼。Python 2.7中的HTTPS身份驗證
import postfile
host = "www.virustotal.com"
selector = "https://www.virustotal.com/vtapi/v2/file/scan"
fields = [("apikey", "-- YOUR API KEY --")]
file_to_send = open("test.txt", "rb").read()
files = [("file", "test.txt", file_to_send)]
json = postfile.post_multipart(host, selector, fields, files)
print json