]> git.arvados.org - arvados.git/commit
5562: Add support for "Expect: 100-Continue" flow for PUT.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 30 Apr 2015 17:55:36 +0000 (13:55 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 30 Apr 2015 20:14:59 +0000 (16:14 -0400)
commit2826ad75d3ded03fae35522a5d75d45c223d27c1
tree96baa5a4be21511d6553836805064b76cc24b51c
parent7990a7778f70c243b50ea878787ea83689f5b07e
5562: Add support for "Expect: 100-Continue" flow for PUT.

This tells cURL to wait for a "go ahead" from the Keep server (in the form of a
HTTP/1.1 "100 Continue" response) instead of sending the request body
immediately.  This allows the server to reject the request if the request is
invalid or the server is read-only, without waiting for the client to send the
entire block.

Uses pycurl.UPLOAD to enable the 'PUT' and 'Expect: 100-continue" behavior.
Use INFILESIZE to sent Content-Length and use READFUNCTION to actually spool
the data.
sdk/python/arvados/keep.py