1
keakon 2014-07-08 17:10:32 +08:00
|
2
yueyoum 2014-07-08 17:24:14 +08:00
request.post(url, cert="test.cert")
|
3
Zuckonit OP |
4
Zuckonit OP google一番, 基本都不对, 拼凑测试几次后通过, 总结如下, 希望对遇到同样问题的人有帮助
filename = '/tmp/test.cert' hash_v = 'assumethisisahash' with open(filename, 'rb') as f: ....requests.post(link, data={'hash': hash_v}, files={'filename':f}, verify='/tmp/test.cert') |