mucked about with Telnet

This commit is contained in:
Me
2022-08-13 03:01:41 +02:00
parent a69273b88e
commit 3495ff19a8
6 changed files with 61 additions and 8 deletions

37
telnet_test.sh Executable file
View File

@@ -0,0 +1,37 @@
#! /bin/bash
# no idea what we're doing here...
PORT=80
METHOD="GET"
PATH="/"
HOST="localhost $PORT"
START="open $HOST"
L1="$METHOD $PATH HTTP/1.1"
run()
{
# echo "this is a test"
# $TEL_START
# spaw telnet localhost $PORT
echo $START
echo
# sleep 1
echo $L1
echo "Host: $HOST"
echo
echo
}
#echo $START
run