diff --git a/_includes/rest/users.md b/_includes/rest/users.md
index 025cb6470..b903d4347 100644
--- a/_includes/rest/users.md
+++ b/_includes/rest/users.md
@@ -60,28 +60,31 @@ The response body is a JSON object containing the `objectId`, the `createdAt` ti
## Logging In
-After you allow users to sign up, you need to let them log in to their account with a username and password in the future. To do this, send a GET request to the /parse/login
endpoint with `username` and `password` as URL-encoded parameters:
+After you allow users to sign up, you need to let them log in to their account with a username and password in the future. To do this, send a POST request to the /parse/login
endpoint with `username` and `password` as parameters in the body:
+
-curl -X GET \
+curl -X POST \
-H "X-Parse-Application-Id: ${APPLICATION_ID}" \
-H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
-H "X-Parse-Revocable-Session: 1" \
- -G \
- --data-urlencode 'username=cooldude6' \
- --data-urlencode 'password=p_n7!-e8' \
+ -H "Content-Type: application/json" \
+ -d '{"username":"cooldude6","password":"p_n7!-e8"}' \
https://YOUR.PARSE-SERVER.HERE/parse/login
-import json,httplib,urllib
+import json,httplib
connection = httplib.HTTPSConnection('YOUR.PARSE-SERVER.HERE', 443)
-params = urllib.urlencode({"username":"cooldude6","password":"p_n7!-e8"})
connection.connect()
-connection.request('GET', '/parse/login?%s' % params, '', {
+connection.request('POST', '/parse/login', json.dumps({
+ "username": "cooldude6",
+ "password": "p_n7!-e8"
+ }), {
"X-Parse-Application-Id": "${APPLICATION_ID}",
"X-Parse-REST-API-Key": "${REST_API_KEY}",
- "X-Parse-Revocable-Session": "1"
+ "X-Parse-Revocable-Session": "1",
+ "Content-Type": "application/json"
})
result = json.loads(connection.getresponse().read())
print result