惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Blackie

碰到shiro反序列化漏洞,大家都是怎么解决的 由于 ASP.NET 进程标识对全局程序集缓存没有读权限,因此未能执行请求。错误: 0x80131902 vs 2005 thread 无法调试 windows 2003 不同网段 无法 文件共享 VSS设置 添加COM类型库ACTIVEX接口 - Blackie - 博客园 windows media play javascript 全屏 单击事件 今天把HP6520S笔记本给拆解了 如何引用 System.Runtime.Serialization.Json; FLASH CS4 制作渐变 动画 有补间动画 传统补间 json2string json格式到string的转换,调试有时候可以用到 asp.net ajax 客户端框架未能加载 sys 未定义 - Blackie WCF 返回json的时间格式的转换 - Blackie - 博客园 jquery 跨域调用wcf 返回json 碰到的一些问题 WCF IIS 用户名消息安全 可能碰到的问题 - Blackie 今天发布的一个程序一直提示Microsoft.mshtml的强名称验证失败 在ASP.NET 中调用RSACryptoServiceProvider失败,提示未找到文件 显示listview的行号 - Blackie - 博客园 分页SQL语句的性能比较 remoting作成windows服务后一直无法读取配置文件,可能的原因之一。
AxWebBrowser,WebBrowser
Blackie · 2008-07-22 · via 博客园 - Blackie

利用2005的WebBrowser我暂时无法得到postData,不知道各位TX有没好办法,记得告知。

所以暂时使用AxWebBrowser

下面是利用2005的WebBrowser获取postData一种其他办法,比较直观,看代码就可以明白了。

private Dictionary<String, String> GetPostData(HtmlDocument doc, Uri target, Uri baseURL)
        
{
            Dictionary
<String, String> ret = new Dictionary<String, String>();
            
foreach (HtmlElement form in doc.GetElementsByTagName("form"))
            
{
                
if ((form.GetAttribute("mode").ToLower() == "post"&& ((target == (new Uri(baseURL, form.GetAttribute("target"))))))
                
{
                    
foreach (HtmlElement widget in form.GetElementsByTagName("input"))
                    
{
                        String name 
= widget.GetAttribute("name");
                        
if (name != "")
                        
{
                            ret.Add(name, widget.GetAttribute(
"value"));
                        }

                    }

                }

            }

            
return ret;
        }

刚才本来想用自己的浏览器来发帖,结果发现插入代码的时候,浏览器自动关闭了,借用其他TX开发的浏览器也是执行错误,

另外感觉MS在WebBrowser上还是比较混乱,期待新版本中。