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

redirected URLs

 [1/2] 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-

 [2/2] 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
<<quoted lines omitted: 4>>
> 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

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted