Created
June 18, 2017 07:55
-
-
Save anonymous/6a5dac6c5f318d2a4074e275abf3c080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@gru ~]# curl -i -H accept=application/json -d username=gru -d password=bob -d eauth=pam http://localhost:8000/login | |
HTTP/1.1 200 OK | |
Content-Length: 193 | |
Access-Control-Expose-Headers: GET, POST | |
Vary: Accept-Encoding | |
Server: CherryPy/unknown | |
Allow: GET, HEAD, POST | |
Access-Control-Allow-Credentials: true | |
Date: Sun, 18 Jun 2017 07:55:18 GMT | |
Access-Control-Allow-Origin: * | |
X-Auth-Token: 6a70b2b53061802406973282494b5ca968d9c975 | |
Content-Type: application/json | |
Set-Cookie: session_id=6a70b2b53061802406973282494b5ca968d9c975; expires=Sun, 18 Jun 2017 17:55:18 GMT; Path=/ | |
{"return": [{"perms": [".*", "@runner", "@wheel"], "start": 1497772518.134624, "token": "6a70b2b53061802406973282494b5ca968d9c975", "expire": 1497815718.134625, "user": "gru", "eauth": "pam"}]}[root@gru ~]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment