简体   繁体   中英

JMeter “Content encoding Error” when using FireFox and HTTP(S) Test Script recorder

I am trying to configure Mozilla Firefox for JMeter 5 and as I am setting up manual proxy in Firefox and same proxy number in JMeter.

I installed the special certificate. My Firefox is showing error as "Content encoding Error", when I open https://www.google.com website.

内容编码错误

This is due to Brotli Encoding not being supported by JMeter Test Script Recorder in versions <= 5.0.

See:

The bug is now fixed in nightly build and in upcoming 5.1 version of JMeter.

To workaround, in Firefox, type about:config and input Content-Encoding:

接受编码

Then remove br from the algorithms accepted.

  1. Don't load test public applications unless you're a member of their QA team or have an explicit permission from the application owner. Most probably you will be at least stopped by DDoS protection mechanisms and your IP will be simply blacklisted which may cause problems for your neighbours if you're behind an ISP NAT .
  2. Whenever JMeter fails to record something try out an alternative way - JMeter Chrome Extension which is a convenient way of intercepting browser traffic without having to configure proxy servers and installing certificates.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM