Hi,
in Delphi, you can do this via OnCustomResponseEvent. in this event you can do almost everything with request/response