I have a python script that loads a pdf converts it to base 64 and puts it into an xml and makes a POST Request to a link.
With my XML formatting I get 400 code Bad Request.
This is my XML, is it something wrong ? Am I missing something ?
xml = """<header xmlns=\"mfp:anaf:dgti:spv:reqUploadFisier:v1\"
xmlns:xsi=\"<upload fisier=\"" +"""+b64+"""+ "\"/></header>"""
The three quotes mean multi line in Python
Thanks in advance
With my XML formatting I get 400 code Bad Request.
This is my XML, is it something wrong ? Am I missing something ?
xml = """<header xmlns=\"mfp:anaf:dgti:spv:reqUploadFisier:v1\"
xmlns:xsi=\"<upload fisier=\"" +"""+b64+"""+ "\"/></header>"""
The three quotes mean multi line in Python
Thanks in advance