Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Intercept the true url location and name for a file?

Aug 14, 2008 4:50AM PDT

Is there a way in javascript or otherwise for me to programmatically intercept the true url location and name for a file that is being dished up by an automated process from a link?

For example, this url: http://view.atdmt.com/100/sview/nstrapnb0110000026ado/direct;pf.FLV;br.500;strm.0;vt.1/01/ points internally to an flv file.

I happen to know the actual location and name of that file is: http://vid.atdmt.com/v/ADADOZZTSPNB/d29863d4-649f-49f3-9a55-d3365e6cb3cf/Energizer_Aliens_30_065_500_4x3.flv, but I know this only because when I click on the first link the flv loads into my Real Player, and I can right click on its name in Real Player and view the properties.

Since Real Player can read the actual location and name of the file, how can I do the same with a little code?

Thanks,
Jim P.

Discussion is locked