title: HttpWebRequest.GetRequestStream : What it does?
body: <p>Code exemple:  </p>
  
  <pre><code>HttpWebRequest request =
     (HttpWebRequest)HttpWebRequest.Create("http://some.existing.url");
  
  request.Method = "POST";
  request.ContentType = "text/xml";
  
  Byte[] documentBytes = GetDocumentBytes ();
  
  
  using (Stream requestStream = request.GetRequestStream())
  {
     requestStream.Write(documentBytes, 0, documentBytes.Length);
     requestStream.Flush();
     requestStream.Close();
  }
  </code></pre>
  
  <p>When I do <code>request.GetRequestStream ()</code>, there's nothing to send in the request. From the name of the method, and the intellisense it shows ("Get System.IO.Stream to use to write request data"), nothing indicates that this line of code will connect to the distant server.<br>
  But it seems it does...  </p>
  
  <p>Can anyone explain to me what <code>HttpWebRequest.GetRequestStream ()</code> exactly does ?  </p>
  
  <p>Thanks for your enlightenments.</p>