Last active
August 29, 2015 14:26
-
-
Save wehappyfew/fd3f545e2d6d0394b749 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
| def make_POST(live, arg1, arg2, variable_arg): | |
| """ | |
| """ | |
| import requests | |
| payload = { | |
| "arg1_key" : arg1, | |
| "arg2_key" : arg2 | |
| } | |
| payload.update( | |
| { | |
| "some[other][selected][%s][value]" % i : i for i in range(0, answers_num-1) | |
| } | |
| ) | |
| r = requests.post(root + "some_URL/actions.php?action=postSomething&arg1=%s&arg2=%s" % (arg1,arg2), | |
| data=payload) | |
| return r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment