M
M
marselabdullin2022-02-18 21:54:14
Python
marselabdullin, 2022-02-18 21:54:14

How to send russian characters in jira put request?

I'm trying to execute the following request, but I'm getting a 500 error in response:

import requests
data = 'Отдел разработки'.encode('utf-8')
response = requests.put('https://jira.citilink.ru/rest/greenhopper/1.0/rapidviewconfig/name', data=data,
                   auth=HTTPBasicAuth(login, password),
                   headers={'Content-Type':'application/json', 'charset':'utf8'})


At first, without encoding and headers, there was an error 415

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question