How to get the redirected URL?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi there,

I have a bunch of URLs. They are all redirecting URLs: if you visit
any one of them, you will be redirected to another URL.

I want to know the redirected URL. How shall I do that? I think I
shall probably send a http request and capture its response and then
parse the response to get its real destination, don't I?

But how shall I implement it? Any sample code?



Re: How to get the redirected URL?

Never mind, I got it worked.

Quoted text here. Click to load it

Site Timeline