Using httperf for posting xml data against ruby applications
Posted by alex in Insights at 7:46 PMI recently ran into an issue with load testing ruby on rails while attempting to post xml data to a ruby appplication via httperf. Everything seemed correct except I could not get httperf to post this data correctly. The issue ended up being that the httperf switch -add-header requires a \n at the end of your HTTP header to process correctly. The entire command to test against the ruby application is below.
Short Answer: Install httperf, use the –add-header switch, and the wsesslog switch.
This was completed on a server running CentOS
1. Install httperf via yum (can be completed by adding the rpmforge yum repo): yum install httperf
2. Create a file(in this case httperf-test) to provide URI and other data.
File Contents: /testurl method=POST contents=’content data here’
3. Issue command: httperf –server server.example.com –add-header=”Content-Type: text/xml\n” –wsesslog 1,2,httperf-test

Entries (RSS)
What’s up, is there anybody else here?
If there’s anyone else here, let me know.
Oh, and yes I’m a real person LOL.
See ya,
[Reply]
alex Reply:
August 13th, 2009 at 11:09 PM
I am real too… and wrote the above post. What’s up?
[Reply]
Just wanted to say hello all. This is my first post.
I came to learn a ton here.
[Reply]
alex Reply:
October 19th, 2009 at 3:03 PM
Hello Hydrolyze,
Good luck.
Thanks.
alex
[Reply]
hi there, my name is Eva.
found this website and read some great discussion and feedback so decided to join
i am happy to help others and offer advice where possible :)
[Reply]
alex Reply:
October 30th, 2009 at 11:59 AM
Hello millercash,
Sounds great. Glad to have you around.
Thanks.
alex
[Reply]
Hello,
My PC worked not correctly, many errors. Help me, please to fix errors on my PC.
I used Windows7.
With best regards,
MalmgoaleagoK
[Reply]
alex Reply:
December 17th, 2009 at 1:02 PM
Hello MalmgoaleagoK.
We will need more details than that to even come close to helping you.
Thanks.
alex
[Reply]