from mitmproxy import http # Yeni SOAP yanıtı soap_response = """ 2 InternetGatewayDevice.User.1.Password Xxxxx111.. InternetGatewayDevice.ManagementServer.EnableCWMP 0 3 """ def response(flow: http.HTTPFlow) -> None: if "Content-Length" in flow.response.headers and flow.response.headers["Content-Length"] == "0": flow.response.headers["Content-Length"] = str(len(soap_response)) flow.response.text = soap_response addons = [ response ]