Circular forwarding, revisited
[1/3] from: chalz::earthlink::net at: 2-Dec-2002 23:35
Okay, I've just bit the bullet and accepted that I can't force REBOL to
allow circular forwarding. But, how about this:
>> url: http://discovery.chtah.com/a/hA91NOxAFqpj3AG83B1ADmei2$l/jjph1853
== http://discovery.chtah.com/a/hA91NOxAFqpj3AG83B1ADmei2$l/jjph1853
>> print read url
connecting to: discovery.chtah.com
connecting to: tlc.discovery.com
** User Error: Error. Target url:
http://tlc.discovery.com/news/afp/20021104/story4.html could not be retrieved.
Circular forwarding detected
** Near: print read url
>>
REBOL is obviously able to retrieve the new target URL. So, how can I
retrieve it and use it, without incurring the error penalty?
[2/3] from: anton:lexicon at: 3-Dec-2002 17:20
You could try this:
port: open url
probe port
Anton.
[3/3] from: chalz:earthlink at: 3-Dec-2002 1:40
Graham convinced me to use a beta version, so I'm running 2.5.3.3.1 now, and
there's no circular forwarding problem. Otherwise, I'd get circular forwarding
with that, too. ;) Though, I'd still like to know the resultant URL somehow.
Anyone got something easier than this?
....
Nevermind, I found I can do:
port: open url
port/url
close port
... I'm willing to bet it doesn't get much cleaner than that?
Thanks everyone!!
--Charles