简体   繁体   English

使用FireFox和HTTP(S)测试脚本记录器时,JMeter“内容编码错误”

[英]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. 我正在尝试为JMeter 5配置Mozilla Firefox,因为我在Firefox中设置了手动代理,在JMeter中设置了相同的代理编号。

I installed the special certificate. 我安装了特殊证书。 My Firefox is showing error as "Content encoding Error", when I open https://www.google.com website. 当我打开https://www.google.com网站时,我的Firefox显示错误为“内容编码错误”。

内容编码错误

This is due to Brotli Encoding not being supported by JMeter Test Script Recorder in versions <= 5.0. 这是由于版本<= 5.0的JMeter测试脚本记录器不支持Brotli编码。

See: 看到:

The bug is now fixed in nightly build and in upcoming 5.1 version of JMeter. 该错误现已在夜间构建和即将推出的5.1版JMeter中修复。

To workaround, in Firefox, type about:config and input Content-Encoding: 要解决此问题,请在Firefox中键入about:config并输入Content-Encoding:

接受编码

Then remove br from the algorithms accepted. 然后从接受的算法中删除br

  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. 除非您是其QA团队的成员或拥有应用程序所有者的明确许可,否则不要加载测试公共应用程序。 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 . 最有可能你将至少被DDoS保护机制阻止,你的IP将被简单地列入黑名单,如果你在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. 每当JMeter无法记录某些内容时,请尝试另一种方式 - JMeter Chrome Extension ,这是一种拦截浏览器流量的便捷方式,无需配置代理服务器和安装证书。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Jmeter 错误 http 测试脚本记录器与 Firestore 请求 - Jmeter error http test script recorder with Firestore Request Jmeter 带有 Firefox 的脚本记录器不允许用户绕过身份验证 - Jmeter Script recorder with Firefox not letting user bypass Authentication 当出现“内容安全策略”错误时,如何使用FireFox中的GreaseMonkey脚本播放声音? - How can I play sound with a GreaseMonkey script in FireFox when there's a “Content Security Policy” error? 上载到S3-Chrome / Firefox中出现新的“不安全脚本” AKA“内容不安全”错误 - Uploading to S3 - new “unsafe script” AKA “ran insecure content” error in Chrome/Firefox 为什么我在Firefox Addon SDK的面板内容脚本上出错? - Why am I Getting error on panel's content script of Firefox Addon SDK? 当我在firefox扩展中使用page-mod添加contentscript时。 内容脚本功能执行三次 - When i add contentscript using page-mod in firefox extension. The content script functions are executed thrice 为Jmeter性能配置手动代理时,Firefox显示“您的连接不安全” - Firefox is showing “Your connection is not secure” when configuring Manual Proxy for Jmeter Performance test 如果任何地方都有“ return”语句,则Firefox插件的内容脚本将无法运行 - Firefox addon's content script will not run if there is a “return” statement anywhere 使用带有 127.0.0.1 的内容脚本和带有 Firefox 插件的自定义端口 - Using a content script with 127.0.0.1 and a custom port with a Firefox Addon Firefox WebExtension 内容脚本中的“this”沙盒化 - Sandboxed `this` in Firefox WebExtension content script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM