Last active
December 20, 2015 08:08
-
-
Save pbasov/6097861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| r = requests.session() | |
| empinfo = {'color':'#000000','usr_id':'0', | |
| 'login':'placeholder','password':'passw','password1':'passw', | |
| 'sname':'surname','fname':'firstname','pname':'middlename', | |
| 'bdate_dd':'01','bdate_mm':'01','bdate_yy':'1970', | |
| 'ref_id':'0','dept':'','tasks':'', | |
| 'phone_i':'','phone_e':'','email_e':'', | |
| 'ho_text':'','sh_text':'', | |
| 'pos':'position','res_id':'0', | |
| 'sdate_dd':'01','sdate_mm':'07','sdate_yy':'2013', | |
| 'alt':'','grp_id':'0','enable':'1'} | |
| r.post('http://requestb.in/1dpgypo1', files=empinfo) | |
| Result: http://requestb.in/1dpgypo1?inspect#1c2ogn | |
| Notice the unwanted filename and Content-Type statements. | |
| Content-Disposition: form-data; name="enable"; filename="enable" | |
| Content-Type: application/octet-stream | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment