[REBOL] Re: redirected URLs
From: chris::ross-gill::com at: 3-Jul-2002 12:14
Hi Richard,
> 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
>
...
> Is there a way to get the "address" of a webpage even though it has been
> redirected?
Yep,
>> site: http://www.xyz.com/
>> port: open site url: port/url close port
>> url
== {http://www.xyz.com/abc/index.php}
Note, port/path will give you the specific path.
- Chris