I 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

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , ,
8 Responses to “Using httperf for posting xml data against ruby applications”
  1. SkaksBosy says:

    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:

    I am real too… and wrote the above post. What’s up?

    [Reply]

  2. Hydrolyze says:

    Just wanted to say hello all. This is my first post.

    I came to learn a ton here.

    [Reply]

    alex Reply:

    Hello Hydrolyze,

    Good luck.

    Thanks.
    alex

    [Reply]

  3. millercash says:

    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:

    Hello millercash,

    Sounds great. Glad to have you around.

    Thanks.
    alex

    [Reply]

  4. MalmgoaleagoK says:

    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:

    Hello MalmgoaleagoK.

    We will need more details than that to even come close to helping you.

    Thanks.
    alex

    [Reply]

  5.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*