Sterling's proxy does not work with new Core ...
[1/3] 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-
[2/3] from: bo:rebol at: 28-Mar-2001 10:56
Petr,
Do you have the last experimental of Core to try it against? That
would be much more helpful than testing against the View experimental.
Thanks!
-Bo
On 28-Mar-2001/13:19:16+2:00, [Petr--Krenzelok--trz--cz] wrote:
>Hi,
>does anyone use Sterling's proxy.r script which can be found on
<<quoted lines omitted: 42>>
>[rebol-request--rebol--com] with "unsubscribe" in the
>subject, without the quotes.
--
Bohdan "Bo" Lechnowsky
REBOL Adventure Guide
REBOL Technologies 707-467-8000 (http://www.rebol.com)
The Official Source for REBOL Books (http://www.REBOLpress.com)
[3/3] from: sterling:rebol at: 28-Mar-2001 14:53
I use that script all the time! It's great! Haha.
A slight change was made to the URL parser such that it now returns
the port it is paring the url into instead of the target of the url.
This should not be a big deal for any other scripts since most do not
do deep intricate port work like this to begin with and then even
fewer would care about the return value of parse-url. All you need to
do is comment out this line from the script and you'll be back in
operation.
; port-spec/target: tgt
Sterling
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted