VB NET - intercept http webbrowser traffic

让人想犯罪 __ 提交于 2019-12-13 18:27:58

问题


Sorry for the english.

I've write a vb net application that have a webbrowser. in this webbrowser run a texas hold'em flash application.

I have the necessity to see the card when the hand was finished to save the hand in txt file. In wich way can i intercept http traffic for each webbrowser?

PS It's legal. I want to see the hand only when it finished.

Thanks


回答1:


To intercept HTTP traffic using .NET, you need to create a web proxy and direct your WebBrowser Control to that proxy. There's an extensive discussion here:

How to create a simple proxy in C#?

Having said that, you will almost certainly find that the communication is encrypted. After all, you would not want someone else to be able to intercept which cards are in your hand just by sniffing packets on the wire.

Many online poker games allow you to download hand history using a well-defined mechanism after a hand completes. All of the poker analysis tools I'm familiar with use that method.

If for some reason you can't do that, consider instead doing a screen capture when the hands are shown. You can look at the screen at key positions where card values are shown and compare to the image of each of the 52 possible cards (or more likely just the area where the value and suit are shown) to determine which card is in each position.




回答2:


In internet forum i have found solution: it is easykook to intercept http traffic of browser.

The problem is taht only http packet was intercepted. The flash application packed in xml was ignored. Flash application is loaded in webbrowser, not in axShockwaveFlash.

Thanks



来源:https://stackoverflow.com/questions/11075966/vb-net-intercept-http-webbrowser-traffic

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