def set_url_path_with_params(context, url_path_str_format):
    """
    Parameters:

        +------+--------+
        | key  | value  |
        +======+========+
        | key1 | value1 |
        +------+--------+
        | key2 | value2 |
        +------+--------+
    """
    safe_add_http_request_context_to_behave_context(context)
    table_as_json = dict(context.table)
    url_path = url_path_str_format % table_as_json
    context.http_request_context.url_path = url_path
Parameters:

        +------+--------+
        | key  | value  |
        +======+========+
        | key1 | value1 |
        +------+--------+
        | key2 | value2 |
        +------+--------+