README.asciidoc 652 B

12345678910111213141516171819202122232425262728
  1. = POST 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. As this example echoes a POST parameter, it is a little more
  7. complex to test. Some browsers feature tools that allow you
  8. to perform one such request, or you can use the command line
  9. tool `curl` as we will demonstrate.
  10. == Example output
  11. [source,bash]
  12. ----
  13. $ curl -i -d echo=echomeplz http://localhost:8080
  14. HTTP/1.1 200 OK
  15. connection: keep-alive
  16. server: Cowboy
  17. date: Fri, 28 Sep 2012 04:12:36 GMT
  18. content-length: 9
  19. content-type: text/plain; charset=utf-8
  20. echomeplz
  21. ----