I have a problem.. in my project, i need to make an AJAX request to a URL shortener site (such as bit.ly, etc..).
My target is either I could get the redirect URL or the content of the redirected site. This far, after I tried some techniques from the web, I still cannot get the correct result.
I tried to catch the 301 HTTP response status (the default behaviour of URL shortener sites), but I found that the request never returns 301. Strangely, it returns 200.
Any idea how to solve this? Thanks a lot.. :)