import requests
headers = {
'Connection': 'keep-alive',
'Content-Length': '67278',
'Cache-Control': 'max-age=0',
'Upgrade-Insecure-Requests': '1',
'Origin': '
https://voyant-tools.org',
'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundarylLEy1IUOhp7h4sfQ',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Sec-Fetch-Site': 'same-origin',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-User': '?1',
'Sec-Fetch-Dest': 'iframe',
'Referer': '
https://voyant-tools.org/',
'Accept-Language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,en-GB;q=0.6',
}
files = {'file': open('1.json', 'rb')}
r =
requests.post('
http://voyant-tools.org/trombone', files=files, headers=headers)
print(r.status_code)
print(r.text)