':return: A string with all the information to send to the login URL.
This string contains the username, password, and all the other
information that was provided by the user and needs to be transmitted to
the remote web application.'

def _get_data_from_format(self):

    trans = (quote_plus if self.url_encode_params else (lambda x: x))
    result = self.data_format
    result = result.replace('%u', trans(self.username_field))
    result = result.replace('%U', trans(self.username))
    result = result.replace('%p', trans(self.password_field))
    result = result.replace('%P', trans(self.password))
    return result
