[REBOL] redirected URLs
From: richard-boyd:worldnet:att at: 3-Jul-2002 8:25
I would like to dynamically access info about graphics on a web page. So I
surf to a web page and parse on {<img src="} ... then append the path in
order to access graphic info.
PROBLEM: How do you get the "path" when it is redirected. For example, I
surf to ...
[1] http://www.xyz.com/
which is redirected to ...
[2] http://www.xyz.com/abc/index.php
I can use "split-path" to extract the path from this URL ... IF I knew what
this redirected (second) URL was. If I use the first URL and append it to
the graphic file name ... then I get an error because the graphic is not
found on that page.
Is there a way to get the "address" of a webpage even though it has been
redirected?
Thanx.
-richard-