'Upload the file using author.dll
:param domain_path: http://localhost/f00/
:param rand_file: <random>.html'

def _upload_file(self, domain_path, rand_file):

    version = '4.0.2.4715'
    file_path = (domain_path.get_path() + rand_file)
    data = (POST_BODY % (version, file_path))
    data += rand_file[::(-1)]
    target_url = domain_path.url_join('_vti_bin/_vti_aut/author.dll')
    try:
        res = self._uri_opener.POST(target_url, data=data)
    except BaseFrameworkException as e:
        om.out.debug(('Exception    while    uploading    file    using    author.dll:    ' + str(e)))
    else:
        if (res.get_code() in [200]):
            msg = 'frontpage    plugin    seems    to    have    successfully    uploaded    a    file    to    the    remote    server.'
            om.out.debug(msg)
        return res.id
    return 200
