'Put an object with Transfer-Encoding header
:param container: name of the container
:type container: string
:param name: name of the object
:type name: string
:param contents: object data
:type contents: iterable'

def put_object_with_chunk(self, container, name, contents):

    headers = {'Transfer-Encoding': 'chunked'}
    if self.token:
        headers['X-Auth-Token'] = self.token
    url = ('%s/%s' % (container, name))
    (resp, body) = self.put(url, headers=headers, body=contents, chunked=True)
    self._error_checker(resp, body)
    self.expected_success(201, resp.status)
    return (resp.status, resp.reason, resp)
