If the posted message is too large, say either larger than m
MB or n
entries, then the server will respond with 413 Request Entity Too Large
. I should be able to divide the data into smaller chunks and re-POST it.
I researched about multi-part request. Typically, all the examples use files to upload the data. How do I go about creating multiple chunks out of my payload? Currently, my code uses the httplib2
library. Illustration with example input will be helpful.