title: How to send HTTP Post request to a socket using ASP.net C#
body: <p>I'm developing on my project and I'm new to ASP.NET.  </p>
  
  <p>I want to send HTTP post request to a socket when I hit a button</p>
  
  <p>here is my code.</p>
  
  <pre><code>protect void Button1_click(object sender, EventArgs e)
  {
     socket clientSocket = new Socket (addressFamily.InterNetwork, SocketType.Stream, Protocol.TCP);
     clientSocket.Connect(new IPEndPont.Parse("192.168.1.1", 5550));
  
     A = "1"; // i want to send this variable using HTTP post request
  
     clientSocket.Send(Encoding.UTF8.Getbytes(A));
  
     clientSocket.Close();
  }
  </code></pre>
  
  <p>tnx for helping.</p>