Is it possible to rewrite a status code with Charles Proxy?

后端 未结 6 828
刺人心
刺人心 2021-01-30 15:57

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.

6条回答
  •  死守一世寂寞
    2021-01-30 16:13

    1- Select Tools > Rewrite or OPTION + CMD + R


    2- Select Enable Rewrite and then select Add


    3- Fill the fields with your details


    4- Add type and action


    5- Select type of action - Response Status for our case -, write value to be changed -500-, write value for replace -200-


    Final Step:

    6- You are ready to manipulate status code of your response with Charles

    Official site of Charles Web Debugging Proxy

提交回复
热议问题