From efedbeab9a57d87ad9ebb9a0ec7396088a6a3ebd Mon Sep 17 00:00:00 2001 From: Hendrik Purmann Date: Tue, 18 Dec 2018 00:31:40 +0100 Subject: [PATCH] Improve `curl` command for testing the application (#2945) When I tried testing the application with `curl`, I got `000` as response. For my environment, escaping the braces results in the variable not being expanded. But because of outputting to `/dev/null`, I didn't see the error message `curl: (6) Could not resolve host: ${GATEWAY_URL}` I'm using zsh under macOS. --- content/docs/examples/bookinfo/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/docs/examples/bookinfo/index.md b/content/docs/examples/bookinfo/index.md index 22688604af..a5b59837b4 100644 --- a/content/docs/examples/bookinfo/index.md +++ b/content/docs/examples/bookinfo/index.md @@ -197,8 +197,9 @@ is used for this purpose. To confirm that the Bookinfo application is running, run the following `curl` command: {{< text bash >}} -$ curl -o /dev/null -s -w "%{http_code}\n" http://${GATEWAY_URL}/productpage -200 +$ curl -I http://${GATEWAY_URL}/productpage +HTTP/1.1 200 OK +... {{< /text >}} You can also point your browser to `http://$GATEWAY_URL/productpage`