How can i use curl to follow an affiliate link from clickbank. ex (http://affid.Vendorid.hop.clickbank.net)
I just want to grab the destination url and return it. I'm confused because the affiliate link has some redirects.
So if my destination url is http://myexample.com, i want to take this url and input it into my sql database.