From 3a9ef5f9bbae19ae5ac4108dbbaed649e26d942e Mon Sep 17 00:00:00 2001 From: Eric Hanchrow Date: Mon, 20 May 2013 16:29:57 -0700 Subject: [PATCH 1/2] Install curl; nix stray backslash; use proper IP address --- docs/sources/examples/python_web_app.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/sources/examples/python_web_app.rst b/docs/sources/examples/python_web_app.rst index 992a09dc42..678b8cd654 100644 --- a/docs/sources/examples/python_web_app.rst +++ b/docs/sources/examples/python_web_app.rst @@ -70,7 +70,8 @@ lookup the public-facing port which is NAT-ed store the private port used by the .. code-block:: bash - curl \http://`hostname`:$WEB_PORT + sudo aptitude install curl + curl http://127.0.0.1:$WEB_PORT Hello world! access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console. From 056698b67678d7dd687e08401386c35cd5cb9d77 Mon Sep 17 00:00:00 2001 From: Eric Hanchrow Date: Wed, 22 May 2013 12:54:50 -0700 Subject: [PATCH 2/2] Use 127.0.0.1 instead of `hostname` in the "access the web app" section. --- docs/sources/examples/python_web_app.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/examples/python_web_app.rst b/docs/sources/examples/python_web_app.rst index 8f662cbf16..952ef62e33 100644 --- a/docs/sources/examples/python_web_app.rst +++ b/docs/sources/examples/python_web_app.rst @@ -71,7 +71,7 @@ lookup the public-facing port which is NAT-ed store the private port used by the .. code-block:: bash # install curl if necessary, then ... - curl http://`hostname`:$WEB_PORT + curl http://127.0.0.1:$WEB_PORT Hello world! access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.