README.asciidoc 600 B

12345678910111213141516171819202122232425262728
  1. = GET parameter echo 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 http://localhost:8080/?echo=hello
  7. You can replace the `echo` parameter with another to check
  8. that the handler is echoing it back properly.
  9. == Example output
  10. [source,bash]
  11. ----
  12. $ curl -i "http://localhost:8080/?echo=saymyname"
  13. HTTP/1.1 200 OK
  14. connection: keep-alive
  15. server: Cowboy
  16. date: Fri, 28 Sep 2012 04:09:04 GMT
  17. content-length: 9
  18. content-type: text/plain; charset=utf-8
  19. saymyname
  20. ----