Jeff H
unread,Feb 21, 2009, 6:41:55 PM2/21/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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