in the midst of debugging http server code
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
22
mio/t/e.sh
Executable 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>>"
|
@ -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);
|
||||
|
Reference in New Issue
Block a user