title: How do I use TIdTelnet to send commands?
body: <p>I am trying to simulate the "new identity" button in Vidalia (the <a href="http://www.torproject.org" rel="nofollow noreferrer">Tor</a> GUI) from my program. <a href="https://stackoverflow.com/questions/3991639/how-can-i-force-tor-to-use-a-new-identity-without-using-vidalia">I asked about that</a>, based on Rob Kennedy's answer, I tried this in my application:</p>
  
  <pre><code>IdTelnet1.Host:='127.0.0.1';
  IdTelnet1.Port:=9051;
  IdTelnet1.Connect(-1);
  IdTelnet1.SendCmd('SIGNAL NEWNYM');
  </code></pre>
  
  <p>But it has not worked for me. Even after I send the command, I get the same proxy.</p>
  
  <p>I am using Indy 9.</p>
  
  <p>I don't know whether I don't know how to use TIdTelnet or don't know how to send that specific command.</p>