2013-09-16 6 views

답변

2

이 시도 :

import requests.packages.urllib3 as urllib3 
urllib3.filepost.choose_boundary = lambda: 'I_AM_NOT_A_MULTIPART_BOUNDARY' 

with open('foobar.txt') as f: 
    r = requests.post("http://requestb.in/179gbs61", files={'file':f}) 
+1

뛰어난 답을. 정확히 내가 원하는 것을하십시오. – fatuhoku