Use urllib2, which seperates reading response code from reading content, instead of httplib2, which doesn't. httplib(2) insists that the Content-Length header match the actual length, and Ubuntu One's middleware may change the content in transit. (LP: #711208)