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

Reading an HTML Page Redirect

 [1/4] from: vonja::sbcglobal::net at: 12-Sep-2008 12:53


Hello, I'm reading a page from a URL (e.g., http://referrer.com/cgi-bin/redirectpage.php) that redirects to a differnet web site (e.g., http://www.new-redirected-site.com/) Rebol correctly reads the redirected HTML Source but I would like to know if there's a way to grab the "domain name" (i.e., HTTP_HOST) of the redirected page? Thank you! --Von

 [2/4] from: jonwhispa:googlemail at: 13-Sep-2008 19:37


Hey, You could try OPEN instead of READ and poke around in the port
>> rsite: open http://www.flutter.com/ >> probe rsite/url
http://www.betfair.com/ == "http://www.betfair.com/"
>> close rsite >>
cookies, content and a lot of other stuff are in the port aswell. Jon

 [3/4] from: vonja::sbcglobal::net at: 13-Sep-2008 23:23


Wow, that's exactly what I'm looking for. I really appreciate the help! Quick question, what happens if you don't close the port and open a new port for a different URL?

 [4/4] from: gregg::pointillistic::com at: 14-Sep-2008 11:00


vsn> Quick question, what happens if you don't close the port and open vsn> a new port for a different URL? If there are no more references to the port, it will eventually be closed and collected by the GC. If you plan to reuse words to refer to ports, you can always use a mezzanine and attempt to close the port first. -- Gregg