title: How to send HTTP POST request and receive response?
body: <p>I'm going to create mobile application that works with CommuniGate Pro server.</p>
  
  <p>For example, I need to make the following Android Client <code>C</code> - CGP Server <code>S</code> conversation and get <code>XIMSS.nonce</code> node value:</p>
  
  <pre><code>C:GET /ximsslogin/ HTTP/1.1
    Host: myserver.com
    Content-Type: text/xml
    Content-Length: 42
  
    &lt;XIMSS&gt;&lt;listFeatures id="list" /&gt;&lt;XIMSS&gt;
  
  S:HTTP/1.1 200 OK
    Content-Length: 231
    Connection: keep-alive
    Content-Type: text/xml;charset=utf-8
    Server: CommuniGatePro/5.3
  
    &lt;XIMSS&gt;&lt;nonce&gt;2C3E575E5498CE63574D40F18D00C873&lt;/nonce&gt;&lt;language&gt;german&lt;/language&gt;&lt;response id="s"/&gt;&lt;/XIMSS&gt; 
  </code></pre>
  
  <p>Example, in ActionScript 3.0 it looks this way:</p>
  
  <pre><code>var loader:Loader = new Loader();
  loader.addEventListener(Event.COMPLETE, completeHandler);
  var urlRequest:URLRequest = new URLRequest(...);
  urlRequest.method = ...;
  urlRequest.data = ...;
  loader.load(urlRequest);
  
  private function completeHandler(...):void { ... };
  </code></pre>
  
  <p>How will it look in Java for <strong>Android 2.1</strong>?</p>