简体   繁体   English

POST处理程序返回的页面被忽略-获得空白响应(web.py)

[英]Page returned by POST handler ignored - get blank response (web.py)

This is using web.py with uwsgi. 这与uwsgi一起使用web.py。

When I return page data from a POST handler, the browser receives a blank page instead. 当我从POST处理程序返回页面数据时,浏览器会改为接收空白页面。 GET handlers are working fine for me. GET处理程序对我来说很好。 The handler is being called correctly, and redirects (web.seeother) will work. 正确调用了该处理程序,并且重定向(web.seeother)将起作用。

要回答我自己的问题,您需要调用web.input()否则返回的数据将被忽略(谁知道为什么?这是一个错误吗?)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM