问题描述
实际上我想使用 Webbrowser Control 从网站下载文件,但由于文件下载对话框,我无法自动下载过程.对于绕过它,我想使用 webclient 并且需要将所有会话和 cookie 从 WebBrowser Control 传输到 webclient,或者我需要将所有自定义标头从 webbrowser control 设置为 WebClient.
Actually I want to download a file from website using Webbrowser Control, but because of File download Dialog box, I am not able to automate downloading process. For Bypass it I want to use webclient and need to transfer all session and cookies to webclient from WebBrowser Control or I need set all custom header from webbrowser control to WebClient.
请帮助我,我的情况非常糟糕.
Please Help me I am in very bad situation.
提前致谢.....
推荐答案
实施自定义下载管理器.在网络上搜索 IDownloadManager
,您会发现一些 C# 示例.
Implement a custom Download Manager. Search the web for IDownloadManager
and you'll find some samples in C#.
这篇关于浏览器控制文件下载对话框绕过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!