Hopefully a quick one, I have a task to see if URLs are still valid on our TFS server as I'm doing a bit of housekeeping.
Currently, I have a list of URLs that I need to check, I was using CURL. The problem is that I have 1000's of URLs to check and everyone automatically downloads a file.
Is there a way to "Fake" the download? What I mean by this is, is there a way that I can confirm the URL works without actually downloading the file as there is 1000's of URLs which will take a lot of time to go through as well as taking up HDD space if I was to download them all?
Thanks in advance :)
Update
TFS is Team Foundation Server,
So here's my current code as a test;
curl -k -u $userPass $url --output test.zip
This code ^^^ successfully downloads the file I'm after but as soon as I add "-v" to get the headers It corrupts the download and gives me a 405 response code.