How to create multiple chunks out of large payload before HTTP POST - python

时间:2015-07-28 22:55:59

标签: python post httplib2 http-status-code-413 large-data

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.

0 个答案:

没有答案