title: HttpURLConnection GET request with http-header "Accept"
body: <p>I have read some relative questions, but unfortunately they do not answer my one, since I have specific requirements.</p>
  
  <p>Maybe it's a dumb question, but how can I request (GET) a JSON-response using httpURLConnection and the http-header "Accept"?</p>
  
  <p>I found a snippet in the documentation, but I'm not sure how to do it though.</p>
  
  <pre><code>Accept = "Accept" ":" #( media-range [ accept-params ] )
  </code></pre>