I’m trying to write a local proxy application. I know how proxy applications work in theory.
I’ve done everything related to handle incoming connections. But the problem is how should I send request which client requested to specified Url. When I try to create a connection with TcpClient to specified Url and port, it throws following exception :
No such host is known
Edit : I think I should bypass the proxy something like FireFox is doing even system proxy set.
Any idea will be helpful.
Thanks in advance.
These links might be of help:
http://www.replicator.org/journal/201011170043-net-connecting-a-tcpclient-through-an-http-proxy-with-authentication
http://alandean.blogspot.co.uk/2010/06/routing-tcpclient-http-requests-through.html