title: URLConnection setRequestProperty vs addRequestProperty
body: <p>Lets say I'm talking HTTP to a web server, and I will Accept html or text, but prefer html.  In other words, the header should say (I think!)</p>
  
  <p>Accept: text/html, text/*</p>
  
  <p>I'm using Java, so I have a URLConnection.  Should I use:</p>
  
  <pre><code>myUrlConnction.setRequestProperty("Accept", "text/html");
  myUrlConnction.addRequestProperty("Accept", "text/*");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>myUrlConnction.setRequestProperty("Accept", "text/html, text/*");
  </code></pre>
  
  <p>or are they equivalent???</p>
  
  <p>In general, most of the third party code I see doesn't seem to worry much about ordering or multiple values of these headers, so I'm wondering how it ends up working.</p>