阅读 RESTful Web APIs 一书
第 127 页建议访问http://haltalk.herokuapp.com/
这个网站说:欢迎,注册你需要执行一个POST请求
我从来没有做过这样的要求,我不明白怎么做
在同一个站点上,有一个带有示例的按钮http://haltalk.herokuapp.com/rels/signup
POST
Create an account
Request
Headers
The request should have the Content-Type application/json
Body
Required properties
username: string
password: string
Optional properties
bio : string
real_name : string
Example
{
"username": "fred",
"password": "pwnme",
"real_name": "Fred Wilson"
}
Responses
201 Created
Headers
Location: URI of the created user account
甚至还有一个橙色按钮可以发出 POST 请求。
我单击此按钮并在正文部分传递用户名和密码
{
"username": "stackoverflowalex",
"password": "alexstackoverflow",
"real_name": "Alex Stackoverflow"
}
我按下按钮Make Request
作为回应,我500 Internal Server Error
得到We're sorry, but something went wrong
我做错了什么还是服务器本身不工作haltalk.herokuapp.com
?