Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: HTTP redirects

From: sterling:rebol at: 5-Nov-2001 14:47

port: open http://www.abc.com/ probe port/locals/list probe port/url close port This is the list of redirected url's. There may be more than one. The list is empty if there were no redirects. The list contains al lredirected url's if there were any. The last URL read is not in the list and, as you know, can be found in port/url. So the better one-liner to see if you got redirected after an open is:
>> empty? port/locals/list
Sterling