On Fri, Feb 2, 2018 at 11:16 PM, zhangbin <zhang...@iat.one> wrote:

> I tried the way you said, but I'm not sure if there is a bug in my json
> format for submitting data

If you're submitting JSON data, then you're probably using the wrong
encoding.  You need to make sure that:
- You are submitting data with
Content-Type:  application/x-www-form-urlencoded, and that you're
submitting the username and password as form fields.  This doesn't usually
happen in JSON (although I'm sure you can do it that way), but it needs the
correct content type.
- You are submitting as a POST request, not a GET, PUT, PATCH, or DELETE.


Reply via email to