diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-16 05:21:03 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-16 05:21:03 +0100 |
commit | 06b7d41ea98e11c5abb4253281be21229875a8f5 (patch) | |
tree | f0718a323f8b45937b94bd5c23de8d883472650e | |
parent | 3597d4607697ad818695424742892a6359313ffd (diff) |
epure the output a bit
select only interesting excerpts
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | apache.adoci | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/apache.adoci b/apache.adoci index b146899..8c3b259 100644 --- a/apache.adoci +++ b/apache.adoci @@ -106,22 +106,13 @@ For that, we first have to install it if it is not already present: Then we can perform queries to our web server (the '-u' option allows to provide a 'user:password' pair). +Only interesting excerpts of the output is shown below + .Failing to access '/private' without providing user/password: ========== $ curl http://csvm2C4E.kent.ac.uk/private/ - > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> - > <html><head> > <title>401 Unauthorized</title> - > </head><body> - > <h1>Unauthorized</h1> - > <p>This server could not verify that you - > are authorized to access the document - > requested. Either you supplied the wrong - > credentials (e.g., bad password), or your - > browser doesn't understand how to supply - > the credentials required.</p> - > </body></html> ========== @@ -129,18 +120,7 @@ a 'user:password' pair). ========== $ curl http://csvm2C4E.kent.ac.uk/private/ -u admin:wrong_pass - > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> - > <html><head> > <title>401 Unauthorized</title> - > </head><body> - > <h1>Unauthorized</h1> - > <p>This server could not verify that you - > are authorized to access the document - > requested. Either you supplied the wrong - > credentials (e.g., bad password), or your - > browser doesn't understand how to supply - > the credentials required.</p> - > </body></html> ========= @@ -148,13 +128,7 @@ a 'user:password' pair). ========= $ curl http://csvm2C4E.kent.ac.uk/private/ -u admin:good_pass - > <html> - > <body> - > <p> - > This content is private. If you can read this message, it means that you have successfully passed HTTP authentication. - > </p> - > </body> - > </html> + > This content is private. If you can read this message, it means that you have successfully passed HTTP authentication. ========= |