Authlogic通过curl而不是浏览器工作

时间:2009-05-26 02:50:46

标签: ruby-on-rails authlogic

这可能与rails作为authlogic有很多关系,但我很困惑。如果我使用curl请求URL如下:

curl http://neevor:l3ftcas3@localhost:3000/users/alerts/1.xml

我得到了理想的结果。但是如果我尝试使用浏览器做同样的事情,我会得到:

Redirected to http://192.168.0.49:3000/login
Filter chain halted as [:require_login] rendered_or_redirected.

这是正常的登录页面。

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

您使用的浏览器是什么?某些浏览器不允许在这样的URL中传递用户名和密码 - 例如IE has stopped allowing this。我相信FireFox也不允许这样做。