import requests


def sendQuery(payload, url):
    """take an url and opens an http connection with payload as a parameter

    Args:
        payload: dictionary
            keys are names of elements in form -- name and password
            values are submission for that element of the form
        
        url: string
            base url to the form being submitted

    Returns:
        text result from the form submission

    Raises:
        tbd

    """

    r = requests.get(url, params = payload)
    return r.text