title: How to send a cookie in a URLConnection?
body: <p>What is the proper way to send a 'full' cookie across a URLConnection?</p>
  
  <p>I've been using: </p>
  
  <pre><code>URL url = new URL(page);  
  URLConnection urlConn = url.openConnection(); 
  
  urlConn.setRequestProperty("Cookie", myCookie); 
  
  urlConn.setUseCaches(true); 
  
  urlConn.connect();
  </code></pre>
  
  <p>The myCookie value is
  testCookie=d1lEZk9rSHd3WnpBd2JkWGRhN1RYdz09OkEwQ21pSFJVZzBpVDhhUENaK3ZPV2c9PQ</p>
  
  <p>Is there a way to send the Path,Domain, and Expires with it?  Do you need to encode the value in some way?</p>