BrowserMob Proxy + JMeter - not able to create HAR file

186 views
Skip to first unread message

NaveenKumar Namachivayam

unread,
May 10, 2016, 10:21:23 PM5/10/16
to BrowserMob Proxy
I have started BMP in 9090 port and I created a PUT request in JMeter to create a HAR file. Below is the path I am using it to create HAR file.


But it is throwing 404 error. I tried different ports in the URL, but it is not creating HAR file.

Where I am making a mistake? Please help me out.

Thanks!

⇜Krishnan Mahadevan⇝

unread,
May 10, 2016, 11:36:20 PM5/10/16
to browserm...@googlegroups.com
Naveen,

I tried triggering a PUT via curl and I don't see any problems.

curl -X PUT -d initialPageRef=Google  http://localhost:9090/proxy/8081/har/

I then put the proxy settings manually into a browser and launched a website.

After that when I triggered a curl -X GET http://localhost:9090/proxy/8081/har and I can see the har file generated properly.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--

---
You received this message because you are subscribed to the Google Groups "BrowserMob Proxy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to browsermob-pro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

NaveenKumar Namachivayam

unread,
May 11, 2016, 12:10:03 AM5/11/16
to BrowserMob Proxy
Krishnan,

Thanks. Now I can see the response. But there is only one entry. But in chrome dev tools, I can see lot of entries for Google.com. How to get all the entries? Thanks!


{"log":{"version":"1.2","creator":{"name":"BrowserMob Proxy","version":"2.1.0-beta-6-legacy","comment":""},"pages":[{"id":"Google","startedDateTime":"2016-05-10T22:00:57.780-05:00","title":"Google","pageTimings":{"comment":""},"comment":""}],"entries":[],"comment":""}}

⇜Krishnan Mahadevan⇝

unread,
May 11, 2016, 12:13:10 AM5/11/16
to browserm...@googlegroups.com
You need to double check and make sure that your browser is indeed using the proxy. I can't think of anything else here.

Check if JMeter has a provision to specify a proxy server and see if that helps [ Personally I have never worked with JMeter, so am out of ideas here ]

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply all
Reply to author
Forward
0 new messages