Created
July 18, 2014 21:50
-
-
Save riteshn-niara/d419bcc7a8790f78a912 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
(ENV)cobra-~/sw/source/userapps/analyzer-web git:(analyzer-app-refactoring2) ✗: curl -c ~/cc.jar -v -H "Content-Type: application/json" -d '{"login":"admin","password":"admin"}' http://localhost:8080/api/auth/login | |
* Adding handle: conn: 0x7fdb13804000 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 | |
* - Conn 0 (0x7fdb13804000) send_pipe: 1, recv_pipe: 0 | |
* About to connect() to localhost port 8080 (#0) | |
* Trying ::1... | |
* Trying fe80::1... | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> POST /api/auth/login HTTP/1.1 | |
> User-Agent: curl/7.30.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Content-Type: application/json | |
> Content-Length: 36 | |
> | |
* upload completely sent off: 36 out of 36 bytes | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 200 OK | |
< Content-Type: application/json | |
< Content-Length: 25 | |
* Added cookie session="eyJfZnJlc2giOnRydWUsIl9pZCI6eyIgYiI6Ik1tTTNNemRtTkRJNFpqTXlNR00zTW1ObE4yUXhORFl5WldRd1lXWTFaREU9In0sInVzZXJfaWQiOiIxIn0.Bqsn8w.NkOL8zd80uZPDODVlX3P7V9l2xo" for domain localhost, path /, expire 0 | |
< Set-Cookie: session=eyJfZnJlc2giOnRydWUsIl9pZCI6eyIgYiI6Ik1tTTNNemRtTkRJNFpqTXlNR00zTW1ObE4yUXhORFl5WldRd1lXWTFaREU9In0sInVzZXJfaWQiOiIxIn0.Bqsn8w.NkOL8zd80uZPDODVlX3P7V9l2xo; Secure; HttpOnly; Path=/ | |
< Server: Werkzeug/0.9.4 Python/2.7.6 | |
< Date: Fri, 18 Jul 2014 21:49:39 GMT | |
< | |
{ | |
"username": "admin" | |
* Closing connection 0 | |
}% | |
... | |
(ENV)cobra-~/sw/source/userapps/analyzer-web git:(analyzer-app-refactoring2) ✗: more ~/cc.jar | |
# Netscape HTTP Cookie File | |
# http://curl.haxx.se/docs/http-cookies.html | |
# This file was generated by libcurl! Edit at your own risk. | |
#HttpOnly_localhost FALSE / TRUE 0 session eyJfZnJlc2giOnRydWUsIl9pZCI6eyIgYiI6Ik1tTTNNemRtTkRJNFpqTXlNR00zTW1ObE4yUXhORFl5WldRd1lXWTFaREU9In0sInVzZXJfaWQiOiIxIn0.Bqsn8w.NkOL8zd80uZPDODVlX3P7V9l2xo | |
.... | |
(ENV)cobra-~/sw/source/userapps/analyzer-web git:(analyzer-app-refactoring2) ✗: curl -v -b ~/cc.jar http://localhost:8080/api/search/searchTags | |
* Adding handle: conn: 0x7ff7ac004000 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 | |
* - Conn 0 (0x7ff7ac004000) send_pipe: 1, recv_pipe: 0 | |
* About to connect() to localhost port 8080 (#0) | |
* Trying ::1... | |
* Trying fe80::1... | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /api/search/searchTags HTTP/1.1 | |
> User-Agent: curl/7.30.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 401 UNAUTHORIZED | |
< Content-Type: text/html | |
< Content-Length: 339 | |
* Replaced cookie session="eyJfaWQiOnsiIGIiOiJNbU0zTXpkbU5ESTRaak15TUdNM01tTmxOMlF4TkRZeVpXUXdZV1kxWkRFPSJ9fQ.BqsoEw.nOunB36NyqeOzAPA5Ql6UTDywd4" for domain localhost, path /, expire 0 | |
< Set-Cookie: session=eyJfaWQiOnsiIGIiOiJNbU0zTXpkbU5ESTRaak15TUdNM01tTmxOMlF4TkRZeVpXUXdZV1kxWkRFPSJ9fQ.BqsoEw.nOunB36NyqeOzAPA5Ql6UTDywd4; Secure; HttpOnly; Path=/ | |
< Server: Werkzeug/0.9.4 Python/2.7.6 | |
< Date: Fri, 18 Jul 2014 21:50:11 GMT | |
< | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> | |
<title>401 Unauthorized</title> | |
<h1>Unauthorized</h1> | |
<p>The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.</p> | |
* Closing connection 0 | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment