<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="generator" content="Osso Notes">
    <title></title></head>
<body>
<p>I believe this is a pretty basic/standard task for anybody using QWebkit so I decided to ask before trying to reinvent the wheel.
<br>
<br>My goal is to use external applications to deal with urls (like mp4, pdf) that the webkit can't by default.
<br>
<br>Webkit "handles" mainly html and images but does not know what to do with other file formats like pdf, mp3, mp4,... I found out where you can allow or stop on Url from being loaded but all the information I have to decide is the url itself.... I would like to inquiry the server about it so I can use the mime type on the header to decide instead. 
<br>
<br>My obvious idea is to just request the head on the acceptNavigationRequest but it seems somewhat redundant (or worst) because in most cases I will find out that it is a type that I actually will want to allow webkit to handle and webkit will have to request the same url again. Is there another way out? Some other slot on webframe, webframeloader?
<br>
<br>Thanks in advance<br></p>
</body>
</html>