[REBOL] HTTP spy ?
From: rebol665:ifrance at: 8-May-2002 16:41
Hi rebollers,
Exploring how CGI works I am in need of an HTTP spy. I mean a rebol program
that could listen to what a web server is getting but without interfering
(always the first directive "do not interfere").
For now I am using this code that works but is blocking the web server.
8< - - - - - - - - - - - - - - - - - - - - - - - - - -
Rebol []
pt: open tcp://:80
forever [
wait pt
print "Data coming ..."
connexion: first pt
buffer: copy ""
until [
data: copy ""
read-io connexion data 255
append buffer data
found? find data "^/"
] ; until
print buffer
close connexion
] ; forever
close pt
8< - - - - - - - - - - - - - - - - - - - - - - - - - -
Does anyone have something for me ?
Patrick