Help on POST with Transfer-Encode Chunk

10 views
Skip to first unread message

Jeff H

unread,
Feb 21, 2009, 6:41:55 PM2/21/09
to httplib2-dev
long story short, I am trying to post a largish payload to a server
who supports chunked transfers, but whose maximum body_recv_buffer is
1MB. I am looking for any kind of example where you post a large
payload to a server using chunked transfer.

I am using couch and the python-couchdb module which uses httplib2. I
am attempting to post a json document of about 8MB in size to the
couchdb server. couchdb uses mochiweb and it has a default limit of
1MB (1024*1024) for the define(MAX_RECV_BODY, (1024*1024)).

I can "hack" around this by modifying the MAX_RECV_BODY in the
mochiweb component of couch to something larger to suit my current
needs but the real answer is to chunk up the payload to the server. I
am very new to the underbelly of HTTP, having only used higher level
abstractions like httplib2, etc before so I am looking for anyone to
point me in the right direction on this.

Does httplib2 already do this and I'm to inexperienced to realize how
I'm bunging this up?


Regards,

Jeff

tammy...@gmail.com

unread,
Jun 14, 2012, 2:53:49 PM6/14/12
to httpli...@googlegroups.com
Hi Jeff - I am also trying to get httplib2 to use a chunked transfer encoding instead of content-length.  Did you ever find a way to do this?

Thanks,
Tammy
Reply all
Reply to author
Forward
0 new messages