in Education by
Is there any way to get to know that a link is download-able? means the link represent any audio, video, zip etc. I know I can do this by creating NSURLConnection and checking MIMETypes in its delegate. But I am looking for any other way because this method is not working well when URL is redirecting 2-3 times. Please note that the workaround should also work on download links such as http://somewebsite.com/download.php?id=10293012983 Hope this question is clear. Please post comments if its unclear to anyone! Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You will have to contact the server the link points to, in order to get information about the link. If you set the HTTPMethod on your request to @"HEAD", then you'll just get the headers for whatever is hiding behind the link, without having to start a full download.

Related questions

0 votes
    If I want to hold a Teams meeting and invite “guests,” what happens if I select that only specific domains ... still able to join the Teams meeting from via a link?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    From the App Store Connect I noticed a message telling me that from March 27, 2019 my applications will ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I've followed two API Gateway tutorials for two different REST APIs that call AWS Lambda. Here's the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    webbrowser.open('https://api.WhatsApp.com/send?phone=number') I want to send WhatsApp messages to numbers without ... in this link. Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Suppose, my license expires today. Can my users be able to view the dashboards or workbooks that I published in the server earlier?...
asked Oct 30, 2020 in Technology by JackTerrance
0 votes
    import os import sys import fileinput print ("Text to search for:") textToSearch = input( "> " ) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 26, 2022 in Education by JackTerrance
0 votes
    Currently I'm using Cloudinary.com to save my users images. I know how to do some of the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    answer this question:how can you download an attachment in Gmail? ? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Where can we test the apple iPhone apps if we don’t have an iOS device?...
asked Nov 30, 2020 in Technology by JackTerrance
0 votes
    When I launch the "mvn install" command, maven sometimes tries to download dependencies that it has already ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I am new at using Ansible. I tried to create directories and download files using Ansible. Should I use shell ... module is available? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
...