I have to agree with you, at least to some extent. The trickster boyfriend should be put away for a very long time. He deliberately plotted, planned and executed a rape by proxy, and should be punished just as if he had committed cold-blooded rape.
The rapist, on the other hand, while definitely guilty of rape, should also be charged with criminal stupidity. How stupid does one have to be to realize that the person you think you are chatting with, especially when talking about a potentially criminal act, may not actually be that person? We see many reports of similar actions taking place. I'm sure this wasn't the first time for something like this. While he was tricked into the act, I have no sympathy for him, and if placed on the jury would have no problem finding him guilty.
(All this, of course, assumes that the reports we've seen are accurate, and that the rape did, indeed, occur. Following the Duke lacrosse incident, and others, we have to be careful about learning who did what and to whom.)