square-greece-86505
10/20/2020, 4:28 AMcurl
$ curl -c cookie.txt -d '{"username":"testuser", "password":"testuser"}' -H 'Content-Type: application/json' <http://localhost:9001/authenticate>
{"status":"ok","data":{"username":"testuser","uuid":"ad605ea0-7cc7-462d-9140-e7c97f326389"}}
# Problem here
$ curl -b cookie.txt <http://localhost:9001/api/v1/user/me>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Error</title>
<style>
html, body, pre {
margin: 0;
padding: 0;
font-family: Monaco, 'Lucida Console', monospace;
background: #ECECEC;
}
h1 {
margin: 0;
background: #A31012;
padding: 20px 45px;
color: #fff;
text-shadow: 1px 1px 1px rgba(0,0,0,.3);
border-bottom: 1px solid #690000;
font-size: 28px;
}
p#detail {
margin: 0;
padding: 15px 45px;
background: #F5A0A0;
border-top: 4px solid #D36D6D;
color: #730000;
text-shadow: 1px 1px 1px rgba(255,255,255,.3);
font-size: 14px;
border-bottom: 1px solid #BA7A7A;
}
</style>
</head>
<body>
<h1>Oops, an error occurred</h1>
<p id="detail">
This exception has been logged with id <strong>7hfh4bg9g</strong>.
</p>
</body>
</html>