title: Multiple Response Headers with the same name in Java
body: <p>In Java, is it possible to view multiple response headers on a HttpURLConnection if they have the same name?</p>
  
  <p>In the <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URLConnection.html" rel="nofollow">Oracle documentation for "GetHeaderField"</a>, it states:</p>
  
  <blockquote>
    <p>If called on a connection that sets the same header multiple times
    with possibly different values, only the last value is returned.</p>
  </blockquote>
  
  <p>My question is, how do I view all the different values for a header that is set multiple times?</p>