I am creating a program in python that posts an XML file to a website's rest API to create a VCS root (this is what the website API documentation suggests). My program creates an XML file, based on user input, posts it (using the requests library), then deletes the file. Is there a way I can post the information contained in the XML file (mostly property values), without creating and deleting this temporary XML file? Can I post the information as a string or something? Examples in python or cURL could help.
data-attribute of requests.