title: Http Post request using tcpClient using proxy
body: <p>II have to send http post data to a website throw a proxy and receive the server response. 
  For example, I want to send the request</p>
  
  <pre><code>request=Encoding.ASCII.GetBytes("POST / HTTP/1.1\r\nHost: example.com\r\nConnection: Close\r\n\r\ntest_check=Hello");
  </code></pre>
  
  <p>In my site, I check if the post data is well sended. In this case, I return "Ok".
  First, I writte something like this:</p>
  
  <pre><code>TcpClient client = new TcpClient(host, port);
  NetworkStream stream = client.GetStream();
  stream.Write(request, 0, request.Length);
  stream.Flush();
  while ((count = stream.Read(buffer, 0, buffer.Length)) &gt; 0)
              response.Append(encoder.GetString(buffer, 0, count));
  </code></pre>
  
  <p>The response is empty. What wrong?</p>
  
  <p>After that will worked, I want to send the request via TcpCLient of a proxy server. Is it possible?</p>
  
  <p>Thanks</p>