InvalidAuthenticityToken when using Mechanize

I am sending post requests to another rails app via mechanize and getting the InvalidAuthenticityToken error. I know its due to the protect_from_forgery line on the application_controller. How do I manage to overcome this?

Thanks a lot,

Elías