DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
vivian

GAE:请教如何获取来路url?

  •  
  •   vivian · Feb 18, 2011 · 4951 views
    This topic created in 5592 days ago, the information mentioned may be changed or developed.
    .
    4 replies    1970-01-01 08:00:00 +08:00
    darasion
        1
    darasion  
       Feb 18, 2011
    self.request.headers['referer']
    vivian
        2
    vivian  
    OP
       Feb 18, 2011
    @darasion 我是self.redirect做302的, headers里没Referer,是不是要换中思路解决,是想做登陆后跳转到来路地址。
    darasion
        3
    darasion  
       Feb 18, 2011
    加一个参数:

    self.redirect('http://somewhere/sth/?source_url=http://xxxxxxx')
    vivian
        4
    vivian  
    OP
       Feb 18, 2011
    @darasion 恩 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5399 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 08:05 · PVG 16:05 · LAX 01:05 · JFK 04:05
    ♥ Do have faith in what you're doing.