Created
September 27, 2014 09:22
-
-
Save salexkidd/db200c9d07afe4ec790e to your computer and use it in GitHub Desktop.
This file contains 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
""" | |
are Test | |
""" | |
import requests | |
ARE_URI = "https://xxx/sample.do" | |
def main(): | |
headers = { | |
'content-type': "application/x-www-form-urlencoded; charset=UTF-8" | |
} | |
payload = { | |
'traderCode': '900000001', | |
'orderNo': '0807-A001', | |
'buyerNameKanji': '俺だよワリオだよ', | |
'settlePrice': '200000', | |
'buyerId': '12345678901234567890', | |
} | |
try: | |
r = requests.post( | |
ARE_URI, headers=headers, data=payload) | |
except Exception as e: | |
print e | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment