Have a look at the JMeter script in CVS, it logs in and then reads forum posts.
http://cvs.moodle.org/contrib/tools/jmeter/LoginForumView.jmx?view=log
You should be able to use the authentication code from there
Hardware and performance
Some trouble using JMeter to benchmark Moodle
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.