etrader Posted July 29, 2011 Share Posted July 29, 2011 There are some indirect download links (e.g. in download.cnet.com), as when clickingon domain.com/download?startdownload; it will start to download a file from domain.com/files/something.zip How to get the actuall download link (the second one) with php and curl? I think it is part of main features of cURL, but I have no idea how to do so. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/243192-how-to-get-actual-download-link-by-curl/ Share on other sites More sharing options...
sKunKbad Posted July 29, 2011 Share Posted July 29, 2011 I know you can set up your curl options to follow redirects, but I'm not aware of any setting that allows you to retrieve the actual URL that you are being redirected to. Quote Link to comment https://forums.phpfreaks.com/topic/243192-how-to-get-actual-download-link-by-curl/#findComment-1249062 Share on other sites More sharing options...
requinix Posted July 29, 2011 Share Posted July 29, 2011 I'm not aware of any setting that allows you to retrieve the actual URL that you are being redirected to. You can get it with curl_getinfo. Quote Link to comment https://forums.phpfreaks.com/topic/243192-how-to-get-actual-download-link-by-curl/#findComment-1249076 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.