SHOW:
|
|
- or go back to the newest paste.
| 1 | ### ### ### terminal 1 ### ### ### | |
| 2 | ||
| 3 | bash-4.3$ awk -f - <<'ENDOFCODE' | |
| 4 | - | BEGIN{while(s="/inet/tcp/8080/0/0"){print"HTTP/1.1 418 I'm a teapot\n"|&s
|
| 4 | + | > BEGIN{while(s="/inet/tcp/8080/0/0"){print"HTTP/1.1 418 I'm a teapot\n"|&s
|
| 5 | - | close(s)}} |
| 5 | + | > close(s)}} |
| 6 | - | ENDOFCODE |
| 6 | + | > ENDOFCODE |
| 7 | ||
| 8 | ### ### ### terminal 2 ### ### ### | |
| 9 | ||
| 10 | bash-4.3$ curl -D - http://localhost:8080/ | |
| 11 | HTTP/1.1 418 I'm a teapot |