| 1 | # Echo Service example |
| 2 | |
| 3 | ``` |
| 4 | podman-compose up |
| 5 | ``` |
| 6 | |
| 7 | Test the service with curl like this: |
| 8 | |
| 9 | ``` |
| 10 | $ curl -X POST -d "foobar" http://localhost:8080/; echo |
| 11 | |
| 12 | CLIENT VALUES: |
| 13 | client_address=10.89.31.2 |
| 14 | command=POST |
| 15 | real path=/ |
| 16 | query=nil |
| 17 | request_version=1.1 |
| 18 | request_uri=http://localhost:8080/ |
| 19 | |
| 20 | SERVER VALUES: |
| 21 | server_version=nginx: 1.10.0 - lua: 10001 |
| 22 | |
| 23 | HEADERS RECEIVED: |
| 24 | accept=*/* |
| 25 | content-length=6 |
| 26 | content-type=application/x-www-form-urlencoded |
| 27 | host=localhost:8080 |
| 28 | user-agent=curl/7.76.1 |
| 29 | BODY: |
| 30 | foobar |
| 31 | ``` |