How to make a simple proxy server?

I wanted to create a simple proxy for my localhost (xampp). I looked at IdHTTPProxyServer, but there is no example how to use it.

My intention is to track my application's Post / Get request at runtime, like a debugger.

my application will send / receive through localhost: 8080, and then my proxy will be served as a bridge to localhost: 80

any suggestion or example?

I am using D2009, D2010 must support Unicode.

Thanks in advance.

+4
source share
2 answers

I know that this is not Indy, but Synapse (I use it with Lazarus) contains an example of a Proxy Server, which should work on Delphi as well. It worked for me on FPC. The demo is included in the sources you get here:

http://www.ararat.cz/synapse/doku.php/download

+3
source

You can use Overbyte ICS TCP / IP library , on the "user made" page you have a lot of proxy proxies, one of them is tgphttpproxy .

+2
source

All Articles