Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### ### ### terminal 1 ### ### ###
- bash-4.3$ awk -f - <<'ENDOFCODE'
- > BEGIN{while(s="/inet/tcp/8080/0/0"){print"HTTP/1.1 418 I'm a teapot\n"|&s
- > close(s)}}
- > ENDOFCODE
- ### ### ### terminal 2 ### ### ###
- bash-4.3$ curl -D - http://localhost:8080/
- HTTP/1.1 418 I'm a teapot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement