Tornado Documentation
› http://www.v2ex.com/tornado/
Tornado on GitHub
› https://github.com/facebook/tornado/
Tornado Gists
› http://tornadogists.org/
maga
V2EX  ›  Tornado

tornado 不处理我的 POST 请求

  •  
  •   maga · Jun 14, 2014 · 7188 views
    This topic created in 4526 days ago, the information mentioned may be changed or developed.
    我的架构是这样的 nginx + tornado. 我在POST 方法里有个302的重定向. 浏览器有将post请求及数据发出去,但我后端的tornado没处理这个请求, 浏览器直接到302的页面.

    我需要在tornado的post方法里处理提交的数据, V神友们,有什么建议吗?
    4 replies  •  2014-06-14 17:08:44 +08:00
    Livid
    Livid
    MOD
    PRO
    Jun 14, 2014
    1
    把代码贴到 gist 上然后发出来吧。
    binux
    binux
    Jun 14, 2014❤️1
    2
    “在POST 方法里有个302的重定向” 是什么意思?
    “浏览器有将post请求及数据发出去,但我后端的tornado没处理这个请求” 这个 302 不是后端的tornado 告诉浏览器的吗?不然浏览器怎么知道是个 302?
    maga
    maga
    OP
    Jun 14, 2014
    3
    @Livid 乌龙乌龙了, 汗.
    把302的url写死成生产环境的url. 结果我在开发环境里整个流程都能走下来, 就是接收不到请求, 原来这些请求是到生产环境里去了.
    cloudaice
    cloudaice
    Jun 14, 2014
    4
    一般情况下,这种情况都是乌龙。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2594 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:05 · PVG 23:05 · LAX 07:05 · JFK 10:05
    ♥ Do have faith in what you're doing.