I'm sorry but that's not very clear for me. I've added the IRequestHandler interface in my main class, I have implemented these methods :
bool IRequestHandler.GetDownloadHandler(IWebBrowser browser, string mimeType, string fileName, long contentLength, ref IDownloadHandler handler)
{
handler = new DownloadHandler(fileName);
return true;
}
public bool GetAuthCredentials(IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, ref string username, ref string password)
{
throw new NotImplementedException();
}
public bool GetDownloadHandler(IWebBrowser browser, string mimeType, string fileName, long contentLength, ref IDownloadHandler handler)
{
throw new NotImplementedException();
}
public bool OnBeforeBrowse(IWebBrowser browser, IRequest request, NavigationType naigationvType, bool isRedirect)
{
throw new NotImplementedException();
}
public bool OnBeforeResourceLoad(IWebBrowser browser, IRequestResponse requestResponse)
{
throw new NotImplementedException();
}
public void OnResourceResponse(IWebBrowser browser, string url, int status, string statusText, string mimeType, System.Net.WebHeaderCollection headers)
{
throw new NotImplementedException();
}
But GetDownloadHandler never fire when I click on a link.
I can't even run the project of the link you gave me, I have a lot of missing reference when I try to run the project downloaded from GitHub.
How can I bind the GetDownloadHandlerevent ?