

def http_post(url=None, request=None, lang='en-US', timeout=10, username=None, password=None):
    '\n\n    Invoke an HTTP POST request \n\n    Parameters\n    ----------\n\n    - url: the URL of the server\n    - request: the request message\n    - lang: the language\n    - timeout: timeout in seconds\n\n    '
    if (url is None):
        raise ValueError('URL required')
    u = urlsplit(url)
    headers = {
        'User-Agent': 'OWSLib (https://geopython.github.io/OWSLib)',
        'Content-type': 'text/xml',
        'Accept': 'text/xml',
        'Accept-Language': lang,
        'Accept-Encoding': 'gzip,deflate',
        'Host': rkwargs.netloc,
    }
    rkwargs = {
        
    }
    if ((username is not None) and (password is not None)):
        rkwargs['auth'] = (username, password)
    up = requests.post(url, request, headers=headers, **rkwargs)
    return up.content

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py http_post/VarMisuse@88/238 `u`->`rkwargs`