是否可以使用 Charles Proxy 重写状态代码? [英] Is it possible to rewrite a status code with Charles Proxy?
问题描述
我正在使用 Charles Proxy 重写来自 API 的响应以进行测试.
I'm using Charles Proxy to rewrite a response from an API for testing purpose.
如果我设置了断点,我就可以按照自己的意愿完全重写原始响应.
If I set a breakpoint, I am allowed to completely rewrite the raw response as I wish.
但是,如果我想通过重写"工具自动化它,我就卡住了,似乎无法修改状态码:
However, if I want to automate it via the "Rewrite" tool, I'm stuck, it seems that you cannot modify the status code:
你知道我是否遗漏了什么吗?
Do you know if I'm missing something?
推荐答案
更新:Charles Proxy 3.8 版刚刚发布,可以重写状态.来自发行说明:
An Update: Version 3.8 of Charles Proxy was just released, with the ability to rewrite the status. From the release notes:
- 重写工具:允许重写响应状态
此版本的重写 UI 添加了新的响应状态"规则类型:
This version's rewrite UI adds a new "Response Status" rule type:
这篇关于是否可以使用 Charles Proxy 重写状态代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!