I have this code that will communicate with a server to send a data, I want it to send the data through TOR .I heard it uses the SOCKS protocol, So how can I use my client app to communicate over TOR with my server.Here is my code that sends data over regular HTTP protocol
public void sendKey()
{
string url="http://localhost:8731/savekey.aspx";
WebClient webClient = new WebClient();
NameValueCollection formData = new NameValueCollection();
formData["clientpassword"] = encryptedPassword;
byte[] responseBytes = webClient.UploadValues(url,"POST",formData);
webClient.Dispose();
}