[REBOL] Sterling's proxy does not work with new Core ...
From: petr::krenzelok::trz::cz at: 28-Mar-2001 13:19
Hi,
does anyone use Sterling's proxy.r script which can be found on
www.rebol.org website? It does work using latest View for e.g., but
timeouts (or what?) if using new Core ... what's the difference in port
handling between the versions?
the log of session follows:
>> do %proxy.r
Script: "REBOL HTTP Proxy" (4-Aug-1999)
==================== NEW CONNECTION ====================
Connection target:
http://www.rebol.org/advanced/index.html
Parsed target: www.rebol.org advanced/ index.html
connecting to: www.rebol.org
Opened port to: ?port?
{GET
http://www.rebol.org/advanced/index.htmlHTTP/1.0^M
If-Modified-Since: Wed, 07 Feb 2001 20:56:46 GMT; length=11872^M
Referer:
http://www.rebol.org/archive.html^M
Proxy-Connection: Keep-Alive^M
User-Agent: Mozilla/4.73 [en] (Win95; I)^M
Pragma: no-cache^M
Host: www.rebol.org^M
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png,
*/*^M
Accept-Encoding: gzip^M
Accept-Language: cs,en^M
Accept-Charset: iso-8859-1,*,utf-8^M
^M
}
** Access Error: Port ?port? not open
** Near: if any [none? conn/target
not find tmp: skip tail conn/target -5 #"."
find tmp "htm"
".r" = skip tail tmp -2
conn/target = "/"
find conn/target #"?"] [
if show-packets [prin #"."]
if no-html-colors [
list: [["COLOR=" "XCLOR="] ["TEXT=" "XTXT="] ["BGCOLOR="
NOCOLOR] ["color:" "XCLOR:"]
["LINK=" "XLNK="] ["ALINK=" "XALNK="] ["VLINK=" "XVLNK="]]
forall list [replace/all data list/1/1 list/1/2]
list: head list
Thanks,
-pekr-