18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
RFE : Can Sahi provide a way to change request parameters / body
Hi,
I have a requirement where I need to modify some of the request parameters.
Is this possible ? If not can this be implemented ?
What I have in mind is that whoever wants to modify the request can implement an interface ( maybe ModifyHttpRequest with methods like setHeader,setBody,setRequestType,removeHeader etc ) and the Sahi Framework will call instantiate this class and call these methods and finally sent the modified request. This would also need a way to let Sahi know which classes to load ( not all classes that implemt ModifyHttpRequest should be used to modify all requests ) and which requests it should operate on.
That's an idea that comes from the top of my head.
Does this sound feasible / do-able ?
thanks,
Hari
I have a requirement where I need to modify some of the request parameters.
Is this possible ? If not can this be implemented ?
What I have in mind is that whoever wants to modify the request can implement an interface ( maybe ModifyHttpRequest with methods like setHeader,setBody,setRequestType,removeHeader etc ) and the Sahi Framework will call instantiate this class and call these methods and finally sent the modified request. This would also need a way to let Sahi know which classes to load ( not all classes that implemt ModifyHttpRequest should be used to modify all requests ) and which requests it should operate on.
That's an idea that comes from the top of my head.
Does this sound feasible / do-able ?
thanks,
Hari