There job is to make proxy server based Toolkit INDY namely based TidHttpProxyServer.
You need to understand how to define an event when the server receives the packet for further forwarding to the recipient! and at this moment to read it, and if you want to edit!
Based on winsock this problem solved but there are many problems with http as such! kind of brakes but it works! As for Indy, (TidHttpProxyServer) flies all with a Bang!
Yes, there is a book of Depth Indie, but there's a kind of literary narrative, and may not catch up yet
If you worked with this component or there is another option to implement this task, I will be happy!
The main question is how to do the HOOK packages?! based on Indy!
Thanks In Advance!
The header can be obtained like so:
procedure TForm1.ProxyHTTPBeforeCommand(
AContext: TIdHTTPProxyServerContext);
begin
memo1.Lines.Add(AContext.Headers.Text);
end;