Get destination of a redirect
Hi,
I'd like to embed videos in one of my page using a bit of jquery. In my page, I've got the url of the video (like http://www.canal-u.tv/?redirectVideo=10349 ) When you use it, this url is redirected to a longer url : http://www.canal-u.tv/video/cinematheque_francaise/dialogue_avec_jean_louis_trintignant.10349
To embed the video I just need to append the following parameters to the url : width=550&height=340
The problem is that I need to append this parameters to the long url, so I need to know, using jquery and starting from the short url, the full url of the page.
If someone has an idea I'd be very interested (I don't have access to the php of the website, otherwise it would be easier using curl to get the url).