Skip to content Skip to sidebar Skip to footer

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/

Solution 1:

First hunch: Make sure line breaks in your request body are CRLF (not just LF). The RFC spec for multipart is very picky about that


Post a Comment for "Python Multipart Post Malformed"