1

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

marino
  • 9
  • 3

2 Answers2

0

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.

Community
  • 1
  • 1
Eric J.
  • 139,555
  • 58
  • 313
  • 529
0

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

marino
  • 9
  • 3