in the midst of debugging http server code

This commit is contained in:
2020-05-20 10:25:12 +00:00
parent 914dd35b37
commit d95bc9bc92
11 changed files with 253 additions and 128 deletions

View File

@ -4,4 +4,6 @@ echo "Content-Type: text/plain"
echo "Custom-Attribute: abcdef"
echo
printenv
exec cat /home/hyung-hwan/projects/hawk/lib/run.c

View File

@ -5,8 +5,8 @@
echo "Content-Type: text/plain"
echo
while read x
while IFS= read -r x
do
echo $x
echo "$x"
done
##echo "<<EOF>>"
echo "<<EOF>>"

22
mio/t/e.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
## curl -v --http1.0 --data-binary @/etc/group --http1.1 http://127.0.0.1:9988/home/hyung-hwan/projects/mio/t/d.sh
echo "Content-Type: text/plain"
echo
if IFS= read -r x
then
q="${x}"
while IFS= read -r x
do
q="${q}
${x}"
done
else
q = ""
fi
sleep 3
printf "%s" "$q"
##echo "<<EOF>>"

View File

@ -6,7 +6,11 @@ BEGIN {
msg = b"GET /home/hyung-hwan/projects/mio/t/b.sh HTTP/1.1\r\n\
Host: www.google.com\r\n\
Connection: Keep-Alive\r\n\r\n";
Connection: close\r\n\r\n";
#msg = b"GET /home/hyung-hwan/projects/mio/t/b.sh HTTP/1.1\r\n\
#Host: www.google.com\r\n\
#Connection: Keep-Alive\r\n\r\n";
sys::write (x, msg);