I'm attempting to make a bot, although the post request requires to be in XML, I have no experience dealing with XML and I'd like your help.
The request payload looks a bit like this:
------WebKitFormBoundaryyXmSIiVhzetQj7u9
Content-Disposition: form-data; name="Name"
asdafa
------WebKitFormBoundaryyXmSIiVhzetQj7u9
Content-Disposition: form-data; name="Description"
------WebKitFormBoundaryyXmSIiVhzetQj7u9
Content-Disposition: form-data; name="Genre"
All
------WebKitFormBoundaryyXmSIiVhzetQj7u9
Content-Disposition: form-data; name="thumbnailImageFile"; filename=""
Content-Type: application/octet-stream
How would I replicate that in python?
I've tried simple things such as
create = s.post(url='https://www.url.com/', data=xml)
I've also tried having a header like {'Content-Type': 'application/xml'} and I've had no success.