Skip to content

Instantly share code, notes, and snippets.

@sbryzak
Created May 8, 2013 10:47
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 sbryzak/483a2a380ee731cbef91 to your computer and use it in GitHub Desktop.
Save sbryzak/483a2a380ee731cbef91 to your computer and use it in GitHub Desktop.
[shane@localhost aerogear-controller-demo-bruno]$ curl -b --cookie -v --user john:123 --digest "http://localhost:8080/aerogear-controller-demo/mycars"
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Digest with user 'john'
> GET /aerogear-controller-demo/mycars HTTP/1.1
> User-Agent: curl/7.27.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
* Added cookie JSESSIONID="wk5tUhq7HFbntJzsKvngAcic.undefined" for domain localhost, path /aerogear-controller-demo, expire 0
< Set-Cookie: JSESSIONID=wk5tUhq7HFbntJzsKvngAcic.undefined; Path=/aerogear-controller-demo; HttpOnly
< WWW-Authenticate: Digest realm="default",domain="/aerogear-controller-demo",nonce="MTM2ODAxMDAwMzM4NjpjYjgwZTc0NC1kZDFkLTRhM2QtYTQwNC1iYmM1MmY2YjVhYzc=",algorithm=MD5,qop=auth,stale="false"
< Content-Type: text/html;charset=utf-8
< Content-Length: 958
< Date: Wed, 08 May 2013 10:46:43 GMT
<
* Ignoring the response-body
* Connection #0 to host localhost left intact
* Issue another request to this URL: 'http://localhost:8080/aerogear-controller-demo/mycars'
* Re-using existing connection! (#0) with host (nil)
* Connected to (nil) (127.0.0.1) port 8080 (#0)
* Server auth using Digest with user 'john'
> GET /aerogear-controller-demo/mycars HTTP/1.1
> Authorization: Digest username="john", realm="default", nonce="MTM2ODAxMDAwMzM4NjpjYjgwZTc0NC1kZDFkLTRhM2QtYTQwNC1iYmM1MmY2YjVhYzc=", uri="/aerogear-controller-demo/mycars", cnonce="MDA5ODUz", nc=00000001, qop=auth, response="2e5ca186b600306eb51ef230263e3f4d", algorithm="MD5"
> User-Agent: curl/7.27.0
> Host: localhost:8080
> Accept: */*
> Cookie: JSESSIONID=wk5tUhq7HFbntJzsKvngAcic.undefined
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Content-Type: application/json;charset=UTF-8
< Content-Length: 57
< Date: Wed, 08 May 2013 10:46:44 GMT
<
* Connection #0 to host (nil) left intact
["Canyonero","Bandit","Truckasaurus","Slackzda","Lazyda"]* Closing connection #0
[shane@localhost aerogear-controller-demo-bruno]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment