cookie

$ curl -v http://localhost:8080/hello/index.jsp

* STATE: INIT => CONNECT handle 0x600057380; line 1090 (connection #-5000)

* Added connection 0. The cache now contains 1 members

* Trying ::1...

* STATE: CONNECT => WAITCONNECT handle 0x600057380; line 1143 (connection #0)

* Connected to localhost (::1) port 8080 (#0)

* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x600057380; line 1240 (connection #0)

* STATE: SENDPROTOCONNECT => DO handle 0x600057380; line 1258 (connection #0)

> GET /hello/index.jsp HTTP/1.1

> Host: localhost:8080

> User-Agent: curl/7.45.0

> Accept: */*

>

* STATE: DO => DO_DONE handle 0x600057380; line 1337 (connection #0)

* STATE: DO_DONE => WAITPERFORM handle 0x600057380; line 1464 (connection #0)

* STATE: WAITPERFORM => PERFORM handle 0x600057380; line 1474 (connection #0)

* HTTP 1.1 or later with persistent connection, pipelining supported

< HTTP/1.1 200 OK

* Server Apache-Coyote/1.1 is not blacklisted

< Server: Apache-Coyote/1.1

< Set-Cookie: JSESSIONID=32F2B01D156F851B7F17C08964738A2E; Path=/hello/; HttpOnly

< Content-Type: text/html;charset=ISO-8859-1

< Content-Length: 261

< Date: Tue, 16 Feb 2016 13:11:18 GMT

<

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title></title>

</head>

<body>

you are first

</body>

* STATE: PERFORM => DONE handle 0x600057380; line 1632 (connection #0)

* Curl_done

* Connection #0 to host localhost left intact

* Expire cleared

</html>

$ curl --cookie "JSESSIONID=32F2B01D156F851B7F17C08964738A2E" -v http://localhost:8080/hello/index.jsp

* STATE: INIT => CONNECT handle 0x600057380; line 1090 (connection #-5000)

* Added connection 0. The cache now contains 1 members

* Trying ::1...

* STATE: CONNECT => WAITCONNECT handle 0x600057380; line 1143 (connection #0)

* Connected to localhost (::1) port 8080 (#0)

* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x600057380; line 1240 (connection #0)

* STATE: SENDPROTOCONNECT => DO handle 0x600057380; line 1258 (connection #0)

> GET /hello/index.jsp HTTP/1.1

> Host: localhost:8080

> User-Agent: curl/7.45.0

> Accept: */*

> Cookie: JSESSIONID=32F2B01D156F851B7F17C08964738A2E

>

* STATE: DO => DO_DONE handle 0x600057380; line 1337 (connection #0)

* STATE: DO_DONE => WAITPERFORM handle 0x600057380; line 1464 (connection #0)

* STATE: WAITPERFORM => PERFORM handle 0x600057380; line 1474 (connection #0)

* HTTP 1.1 or later with persistent connection, pipelining supported

< HTTP/1.1 200 OK

* Server Apache-Coyote/1.1 is not blacklisted

< Server: Apache-Coyote/1.1

< Content-Type: text/html;charset=ISO-8859-1

< Content-Length: 265

< Date: Tue, 16 Feb 2016 13:12:12 GMT

<

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title></title>

</head>

<body>

you are not first

</body>

* STATE: PERFORM => DONE handle 0x600057380; line 1632 (connection #0)

* Curl_done

* Connection #0 to host localhost left intact

* Expire cleared

</html>