README.asciidoc 576 B

123456789101112131415161718192021222324252627
  1. = Hello world example
  2. To try this example, you need GNU `make` and `git` in your PATH.
  3. To build and run the example, use the following command:
  4. [source,bash]
  5. $ make run
  6. Then point your browser to https://localhost:8443
  7. You will need to temporarily trust the root certificate authority,
  8. which can also be found in `priv/ssl/cowboy-ca.crt`.
  9. == Example output
  10. [source,bash]
  11. ----
  12. $ curl --cacert priv/ssl/cowboy-ca.crt -i https://localhost:8443
  13. HTTP/1.1 200 OK
  14. connection: keep-alive
  15. server: Cowboy
  16. date: Fri, 28 Sep 2012 04:10:25 GMT
  17. content-length: 12
  18. Hello world!
  19. ----