Django auth plugin for httpie.
httpie-django-auth的Python项目详细描述
httpie django认证
httpie的django身份验证插件。
安装
$ pip install httpie-django-auth
现在应该可以在$ http --help输出中的--auth-type下看到django。
用法
默认情况下,httpie django auth使用/admin/login登录。如果需要使用其他url进行日志记录,请设置环境变量。
exportHTTPIE_DJANGO_AUTH_URL='/accounts/login/'
向您的网站提出请求
$ http --auth-type=django --auth='username:password' example.org $ http -A=django --auth='username:password' example.org $ http -A=django --auth='username:password' example.org/profile $ http -A=django --auth='username:password' http://127.0.0.1:8000/profile
许可证
请参见license.txt