Thursday, December 31, 2009

Tip #1: How to record HTTPS requests by JMeter's recording proxy

If you ever tried to record HTTPS requests by the recording proxy of the lastest stable version of JMeter (2.3.4) you know that it's impossible. And HTTPS spoofing option can not help in the most cases.

I investigated this problem and found interesting thing. There is already a bug 47622 in JMeter's Bugzilla that already has RESOLVED FIXED status. Some guys added a patch and fake SSL certificate to JMeter so it allows to record HTTPS requests now. But you must use developer (nightly) build instead of stable release until this bugfix is added to next stable release.

14 comments:

  1. Tanks!!!! That's absolutely what I was searching for 3 long weeks!!!! I hope it will go on, i'm using that for my thesis at University... ;-)!!!!

    ReplyDelete
  2. The JMeter v 2.4 is OUT now...As per release notes it supports HTTPS recording...but as per my observation it only creates a blank request/sampler for every HTTPS request (does not record any header info etc.)

    Any comments??

    ReplyDelete
  3. Anonymous, I've tested HTTPS recording feature of JMeter 2.4 on Windows - works good for me.

    ReplyDelete
  4. Yes, I have also used JMeter with HTTPS spoofing enabled. Faced no problem. I have tried to capture the detailed procedure here

    ReplyDelete
  5. Yes it worked for me as well

    ReplyDelete
  6. can you please suggest me the best graph for performance analysis.
    i am new to it & please help me out

    ReplyDelete
  7. Ashfaque, I use my own graph GUI written on PHP and can not suggest you anything.

    ReplyDelete
  8. Hi, I am new to Jmeter and i need to to create script for my complete travel page which has Home page then flight search then booking etc and i want to capture response time for each functionality separately, so do i need to create a separate test plan or is there any other functionality which can help

    ReplyDelete
  9. er.gauravagg, sorry for late reply. You can do it in one test plan with Simple Data Writer added. Then you will have results file which you can parse and get all the data you need including the response time. Or you can use such listeners like View Results Tree or View Results in Table.

    ReplyDelete
  10. How to see recorded file using Jmeter.I recorded my travel site using jmeter but i could not see the sampler for the recorded value

    ReplyDelete
  11. Sakthy, http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf

    ReplyDelete
  12. i am trying to record the https request through proxy with jmeter 2.7 version,
    say https://www.gmail.com, jmeter does not record any action log in , check check box mail button , delete the mail and log out. please provide the solution for this problem

    ReplyDelete
    Replies
    1. Did you try to record http requests with the same settings?

      Delete
    2. Which browser u r using.. if firefox means selct check box near the Manual proxy setting. If you select the check box means, the proxy will taken and jmeter will record

      Delete