Request and response handling using Scripts