I'm crawling a web page list of links that are either web pages or large binary files (PPT etc), using javascript and jquery.
How do I detect whether the content is a web page ('text/html') or not? I'm pretty sure it is looking at the HTTP header using $.ajax, and I know there are some similar posted questions, but I can't find an example that fits this particular question.