I have a URL that is a tracking URL, and when I visit the URL it redirects a few times until it finally lands URL that doesn't redirect.
Is it possible to write a function that will follow the redirects and just output them to the console?
I have a URL that is a tracking URL, and when I visit the URL it redirects a few times until it finally lands URL that doesn't redirect.
Is it possible to write a function that will follow the redirects and just output them to the console?
The HEAD method isn't required, but for servers that will respond to it, it avoids sending the entire content (when not redirected, of course).