Note use of \r\n. and echo -n, i.e. no automatic new line and -e escape chars
echo -ne "HTTP/1.1 200 OK\r\nContent-Encoding: gzip$(echo hello-world | gzip)\n" | netcat -l 4000
Your email address will not be published.
Comment
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
9 − five =