1
lijinma 2014 年 7 月 29 日
去掉 type="application/x-www-form-urlencoded" 试试?
|
2
lijinma 2014 年 7 月 29 日
错了,去掉 application/x-www-form-urlencoded 也没用,因为默认就是 application/x-www-form-urlencoded。。。
|
3
eggacher OP @lijinma 试过了,不是这个问题。
<form action="http://8tzpnrQXugOwaNN7j:[email protected]:8000/o/token/" method="post" type="application/x-www-form-urlencoded"> <input name="grant_type" type="hidden" value="password" /> <input name="client_id" type="hidden" value="8tzpnrQXugOwaNN7j" /> <input name="client_secret" type="hidden" value="d69CfLZ4" /> <input name="username" type="text" value="george" /> <input name="password" type="password" value="123456" /> <input type="submit" value="submit" /> </form> 改成这样就行了...Orz.. 我就很奇怪,curl协议里也实现了 OAuth么? |
4
582033 2014 年 7 月 29 日
curl -v -X POST --data 'rant_tyle=xxx&username=xxx&password=xxx' http://xx.com
更多请参照: http://yjiang.tk/?p=41 |
5
ibudao 2014 年 7 月 29 日
httpie, httpie-oauth
|
6
bigfei 2014 年 7 月 29 日
|
7
pmispig 2014 年 7 月 29 日
如果按你后面的表单构建提交成功,那curl 的那个命令提交应该会出错啊
|