HTTP Proxy Server is a non-test element feature of JMeter which enables user to record scripts from a real browser.
1. Add Proxy Server to WorkBench
- Add Non-test Elements > HTTP Proxy Server

- Set “Target Controller” where your recorded scripts will be added
- Set URL patters to INCLUDE or EXCLUDE
-
- .* – all
- .*\.png – all png images
- .*\.gif – all gif images
- .*\.jpg – all jpg images
- .*\.php
- .*\.jsp
- .*\.html
- .*\.htm
- .*\.js
- Click START

2. Set your Browser to use Proxy (I used IE7 browser)
- Go to Tools > Internet options > Connections > LAN Setting
- Select “proxy server”
- Set Address = localhost; Port = 8080

3. Browse your application and record
4. In HTTP Proxy Server, click “Stop” when finished
To verify if recording was successful, you should be able to see HTTP requests generated under your “Target Controller”
More Tricks:
Add a Constant Timer to the HTTP Proxy Server node to record your think-time (right-click on the “HTTP Proxy Server” node and choose “Add,” “Timer,” and then “Constant Timer.”)
Next change the “Thread Delay” on the timer to “${T}” to tell the proxy server to record your time rather than to add a constant time for each request.

August 26, 2009 at 9:57 pm
hi
i am new to http proxy, and so am encountering an error or two.
my application under test is a app running on tomcat port 8080, i set up a http proxy server and recording controller, however when i click start i get port already in use.
here are my current settings:
IE: localhost, port:8080
JMeter Thread: 127.0.0.1/audiomatch Port:8080
HTTP Proxy Server Port: 8080
I’m guessing that the proxy cant run on the same port as the app, but if I alter the IE settings then obviously I cant view by app to record tests.
Any ideas?
August 27, 2009 at 9:49 am
hi brad,
you are right that the proxy cant run on the same port as the app… try altering the IE settings AND HTTP proxy server to port other than 8080, just make sure IE and HTTP proxy have the same port so you can view your app and record your scripts.
lemme know if it works!
August 27, 2009 at 6:26 pm
hi girlie
thanks alot i managed to get it working. unbeknown to me, i had previously configued the proxy exceptions to divert the URL i was working with, so after clearing that off, all is going well.
your information was very useful so thanks.
can you recommend any good sources for newbies to jmeter.
ive basically got to test load, performance for 2-3k users hitting and manipulating the website.
thanks though, this page was really very useful.
August 28, 2009 at 10:58 am
hi brad,
try looking at this http://jakarta.apache.org/jmeter/index.html this site helps a lot.
or you may check this out -> http://www.scribd.com/doc/7499267/Load-Testing-With-JMeter
regarding your 2-3k users Jmeter’s distributed testing is the tool.
happy testing!
November 12, 2009 at 6:33 pm
Hi,
Please anyone help me on this issue regarding HTTP proxy server.
My question is JMeter is not able to record.
Steps to be followed:
1- adding one threadgroup under this add one Http default request
2- In Http Request default my web server si 217.17.227.243 and port is 7003
3- Then i add one HTTP proxy server and port is 8080 i.e same as my IE brower whose ip is 172.19.56.18 and port is 8080.
Please help me on this when i start its not recording
November 16, 2009 at 12:29 pm
Hi Subrat!
Your setting seems right for me. I have some questions/suggestions for you to find out what is the problem:
1. Are you using a dial up or VPN connection?
Using a proxy server for LAN does not apply to dial up or VPN.
2. Is 8080 an open port? Could you try using a different port say 8085 or any other open port, and let’s see if it will work.
3. If in step 2, proxy server still does not record the scripts properly. I suggest you first try to record scripts in google, if you made it here at least we would know that Jmeter proxy server is working fine. And the next thing to find out is why its not working in your app.
These are my best shots for now.