Say if I put http://www.abc.com in the browser, the browser automatically gets redirected to http://www.xyz.com. I need to get that redirect url from server side. That is, if http://www.abc.com returns a redirect url http://www.xyz.com, how can I request this redirect URL (www.xyz.com) from the original URL (www.abc.com)?
Say if I put www.abc.com in the browser, the browser automatically gets redirected to
Share
Here’s a snippet from a web crawler that shows how to handle redirects: