'Called when HTTP channel got length of content in this request.
This method is not intended for users.
@param length: The length of the request body, as indicated by the
request headers.  L{None} if the request headers do not indicate a
length.'

def gotLength(self, length):

    if ((length is not None) and (length < 100000)):
        self.content = StringIO()
    else:
        self.content = tempfile.TemporaryFile()
