From what I understand, online poker sites do not send you the data about the other player's cards until the showdown to prevent things of this nature from happening.
The best way to beat online poker is to just get good. There's so many bad players out there, if you can't make money doing this, you're doing something wrong.
