使用 web2py 控制器中的参数重定向 URL

Redirect URL with parameters in web2py controller

我正在尝试使用参数从 forminput.html 重定向到 URL('form','results')(在我的例子中,它是一个巨大的字典,即输出) .但是当网页被重定向到 results.html 时,所有参数也都包含在网络 Url 本身中,这是我们不想要的,原因有两个,安全性和 url 的冗长类型。
在这种情况下你能帮我吗?
提前致谢

这是 URL 的示例。
http://127.0.0.1:8000/AWS/form/results?csp=&ibx=&metro=&o=%7B%22se1.sv1%22%3A+%7B%22xe-0%2F2%2F1%22%3A+%7B%22Util%22%3A+66%2C%22c_name%22%3A+%22dxcon-fh26tz6s%22%2C%22c_serial%22%3A+%2215563580-A%22%7D%2C%22xe-2%2F1%2F3%22%3A+%7B%22Util%22%3A+31%2C%22c_name%22%3A+%22dxcon-fgptdigg%22%2C%22c_serial%22%3A+%2220130277-A%22%7D%2C%22xe-3%2F0%2F3%22%3A+%7B%22Util%22%3A+0%2C%22c_name%22%3A+%22SFDC-SV3-CX-SEC-01%22%2C%22c_serial%22%3A+%2220375541-A%22%7D%2C%22xe-3%2F1%2F2%22%3A+%7B%22Util%22%3A+0%2C%22c_name%22%3A+%22dxcon-ffj66n3f%22%2C%22c_serial%22%3A+%2220347645-A%22%7D%2C%22xe-3%2F2%2F3%22%3A+%7B%22Util%22%3A+0%2C%22c_name%22%3A+%22dxcon-fgsmxuat%22%2C%22c_serial%22%3A+%2220366330-A%22%7D%7D%7D#

/*this my controller, form.py*/

my_funct():
    out_dict=dict()  // out_dict is a huge dictionary with 100 of keys and values  
    return out_dict

define forminput():  
    outout=my_funct()  
    redirect(URL('form','results', vars= dict(out=output)))  

define results():  
    data=request.vars['out']  

您可以改为将数据存储在会话中(保留在服务器上):

define forminput():  
    session.data = my_funct()  
    redirect(URL('form', 'results'))  

define results():  
    data = session.data