Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-*- coding: utf8 -*-
- import requests
- s = requests.Session()
- payload = 'antofa_field1=Hello test2' # open('product.json', 'rb').read()
- headers = {'content-type': 'application/x-www-form-urlencoded'}
- r = s.put('https://astore:w3LjfUEa6jbsPvveKo1wWeJtuTnryDeF@api.schema.io/astore.com.products/58497f446e913f3276561c47', data=payload, headers=headers)
- print r
- open('page.htm', 'wb').write(r.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement