The image shows the output for the program in a browser. Here is the cURL command that produces the same output and the resulting text returned. ora-T430:~ $ curl -X GET -i http://localhost:8080/myapp/customers/101 HTTP/1.1 200 OK Content-Type: text/plain Date: Tue, 05 May 2015 21:41:43 GMT Content-Length: 118 ---Customer--- ID: 101 First: John Last: Adams EMail: jadams@example.com City: Braintree State: MA Birthday 1735-10-30