Is there a way to capture streaming audio / video from the web?

Someone told me that you can go to the cache and get the file but when I try to open it offline, Real Audio or Windows Media Player try to go to the URL where it came from.

Thanks,

James