Python MultiPart POST Malformed
问题 I'm trying to figure out how to write a MultiPart POST request to OneNote using Python. Here is what I've done so far: url = ROOT_URL+"pages" headers = {"Content-Type":"multipart/form-data; boundary=MyAppPartBoundary", "Authorization" : "bearer " + access_token} txt = """--MyAppPartBoundary Content-Disposition:form-data; name="Presentation" Content-type:text/html <!DOCTYPE html> <html> <head> <title>One Note Text</title> </head> <body> <p>Hello OneNote World</p> </body> </html> -