浏览器控制文件下载对话框绕过 [英] Webbrowser control File Download dialog Bypass

查看:43
本文介绍了浏览器控制文件下载对话框绕过的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我想使用 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.

提前致谢.....

推荐答案

实际上我想使用 Webbrowser 从网站下载文件控制,但由于文件下载对话框,我无法自动下载过程.

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.

实施自定义下载管理器.在网络上搜索 IDownloadManager,您会发现一些 C# 示例.

Implement a custom Download Manager. Search the web for IDownloadManager and you'll find some samples in C#.

这篇关于浏览器控制文件下载对话框绕过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆