iPhone App; identify file type from url <p>for an iphone app i am downloading files using url....</p> <p>from this type of url:: <a href="http://xxxxxxxxxxxxxxxxxxx.com/xxxxxxx//xxx/ipad.html?operation=getFile&amp;contentId=61768b16-6b44-4d0b-bdcf-d10107d1f328" rel="nofollow">http://xxxxxxxxxxxxxxxxxxx.com/xxxxxxx//xxx/ipad.html?operation=getFile&amp;contentId=61768b16-6b44-4d0b-bdcf-d10107d1f328</a></p> <p>I am downloading files from server but it may be of type .pdf or .docx or .doc </p> <p>is there any way to identify file type from url ?</p> <p>Please help and suggest</p> <p>Thanks</p>