title: How do I forward request to another proxy server using TIdHTTPProxyServer (proxy chain)
body: <p>currently I want to make my indy proxy server forward the request to another proxy server. I have found <a href="http://forums2.atozed.com/viewtopic.php?f=7&amp;t=151" rel="nofollow">this link</a> and made a try by myself. But my code does not work without any error message as if I had made no change. My code is as below in C++ XE2. </p>
  
  <pre><code>void __fastcall TForm3::MyProxyHTTPBeforeCommand(TIdHTTPProxyServerContext *AContext)
  {
      TIdIOHandlerStack* tempIO = new TIdIOHandlerStack(NULL);
  
      TIdConnectThroughHttpProxy* tempProxy = new TIdConnectThroughHttpProxy(NULL);
      tempProxy-&gt;Enabled = true;
      tempProxy-&gt;Host = "localhost";
      tempProxy-&gt;Port = 8181 ;
      tempIO-&gt;TransparentProxy  =  tempProxy;
      AContext-&gt;OutboundClient-&gt;IOHandler =  tempIO;
  
  }
  </code></pre>