How can I send an xml body using requests library?

def request(): #encoded_xml = urllib.urlencode({'XML': read_xml()}) #encoded_xml = read_xml() headers = {'Authorization': AUTH_TOKEN, 'developerToken': DEVELOPER_TOKEN, 'clientCostumerID': CLIENT_ID} content = {'__rdxml': encoded_xml} #content = encoded_xml #content = {'__rdxml': read_xml2()} r = requests.post(URL, data=content, headers=headers) return r These combinations don’t seem to work. The headers are not set for some reason. Answers: Thank you for visiting the … Read more