How to use httpRequest and HtmlAgilityPack together?

試著忘記壹切 提交于 2019-12-04 20:02:43

There is no need to use WebBrowser for parsing HTML. You can either look for the needed information in the HTML as a string or use library like http://htmlagilitypack.codeplex.com/ to do the parsing.

Also you will find http://www.fiddler2.com/ very useful to determine exactly what information the browser sends to the web page so you can reproduce the behavior using HttpWebRequest (headers, GET/POST values etc.).

You could also try http://www.chadsowald.com/software/fiddler-extension-request-to-code - extension to Fiddler that automatically generates .NET code that imitates the browser request.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!