Thanks Matt. I have check the rails api and see that I can pass a hash with the headers as a parameter with the post command.
post "/session", {:username => 'matt', :password => 'secret'}, {:HTTP_USER_AGENT => "MSIE"} and this works for me, by now, I don't know if I will have some more troubles with webrat. Thanks. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users