Skip to content

Instantly share code, notes, and snippets.

Created June 18, 2017 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6495e83163a39a586bfffb7b15ee030b to your computer and use it in GitHub Desktop.
Save anonymous/6495e83163a39a586bfffb7b15ee030b to your computer and use it in GitHub Desktop.
[root@gru static]# curl -sSk http://localhost:8000/login -H 'Accept: application/x-yaml' -d username=gru -d password='bob' eauth=pam curl -sSk http://localhost:8000/
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>401 Unauthorized</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>401 Unauthorized</h2>
<p>Could not authenticate using provided credentials</p>
<pre id="traceback"></pre>
<div id="powered_by">
<span>
Powered by <a href="http://www.cherrypy.org">CherryPy unknown</a>
</span>
</div>
</body>
</html>
curl: (6) Could not resolve host: eauth=pam; Name or service not known
curl: (6) Could not resolve host: curl; Name or service not known
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>401 Unauthorized</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>401 Unauthorized</h2>
<p>No permission -- see authorization schemes</p>
<pre id="traceback"></pre>
<div id="powered_by">
<span>
Powered by <a href="http://www.cherrypy.org">CherryPy unknown</a>
</span>
</div>
</body>
</html>
[root@gru static]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment