Skip to content

Instantly share code, notes, and snippets.

@bfontaine
Created March 15, 2023 11:08
Show Gist options
  • Save bfontaine/a84f9f95f35f968dbf9957757ca38835 to your computer and use it in GitHub Desktop.
Save bfontaine/a84f9f95f35f968dbf9957757ca38835 to your computer and use it in GitHub Desktop.
HTTP/1.1 200
content-type: text/plain
vary: Accept-Encoding
x-request-id: ctes5cd3wt8tjd45cj9c99z1eh
x-version-id: 7.5.2.7.5.2.6eded827d979ba5811e115a0dba170de.false
content-length: 2
date: Wed, 15 Mar 2023 10:39:17 GMT
ok
HTTP/1.1 200
content-type: text/html
vary: Accept-Encoding
x-request-id: ctes5cd3wt8tjd45cj9c99z1eh
x-version-id: 7.5.2.7.5.2.6eded827d979ba5811e115a0dba170de.false
content-length: 2
date: Wed, 15 Mar 2023 10:39:17 GMT
ok
#!/bin/sh
while true
do
echo 'Now serving html'
cat response | nc -Nl 1234 >/dev/null
echo 'Done.'
echo 'Now serving text'
cat mattermost-response | nc -Nl 1234 >/dev/null
echo 'Done.'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment