Skip to content

Instantly share code, notes, and snippets.

@salexkidd
Created September 27, 2014 09:22
Show Gist options
  • Save salexkidd/db200c9d07afe4ec790e to your computer and use it in GitHub Desktop.
Save salexkidd/db200c9d07afe4ec790e to your computer and use it in GitHub Desktop.
"""
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