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 · 6796 views
    This topic created in 4381 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
        1
    Livid  
    MOD
    PRO
       Jun 14, 2014
    把代码贴到 gist 上然后发出来吧。
    binux
        2
    binux  
       Jun 14, 2014   ❤️ 1
    “在POST 方法里有个302的重定向” 是什么意思?
    “浏览器有将post请求及数据发出去,但我后端的tornado没处理这个请求” 这个 302 不是后端的tornado 告诉浏览器的吗?不然浏览器怎么知道是个 302?
    maga
        3
    maga  
    OP
       Jun 14, 2014
    @Livid 乌龙乌龙了, 汗.
    把302的url写死成生产环境的url. 结果我在开发环境里整个流程都能走下来, 就是接收不到请求, 原来这些请求是到生产环境里去了.
    cloudaice
        4
    cloudaice  
       Jun 14, 2014
    一般情况下,这种情况都是乌龙。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2838 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:38 · PVG 21:38 · LAX 06:38 · JFK 09:38
    ♥ Do have faith in what you're doing.