How to send a multiparta with requests in python?how to post my form with request i try but the post don't work .
files={'check_type_diff': (None, '0'),
'category': (None, '19'),
'company_ad': (None, '0')}
#login
payload = { 'username':'xxxxx','passwd':'xxxx'}
s = requests.Session()
r = s.post('https://exemple.com/0',data=payload)
#login to my account
post ads
r = s.post('https://exemple.com/0', data=files )
print r.text
the last post don't work ????