title: (Andorid Instant)Try to get json/xml content with http(s) request
body: <p>Currently, I am developing Android instant app. 
  In the feature module, I would like to get json/xml content with http(s) call.</p>
  
  <p>Based on my research, I found 2 ways to do so.</p>
  
  <p>first</p>
  
  <pre><code>val url = URL("https://json or xml url")
  val connection: HttpURLConnection = url.openConnection() as HttpURLConnection
  val response = connection.responseCode
  </code></pre>
  
  <p>second</p>
  
  <pre><code>val result = URL("https://json or xml url").readText()
  </code></pre>
  
  <p>Both does not work.</p>
  
  <p>I use valid url. I typed the url in web browser and able to get what I want.</p>
  
  <p>I add internet connection in manifest xml file as well(base module, feature module). Still the result is unfruitful. </p>
  
  <p>Can you tell me how I can get json/xml content using http(s)call in android instant app(kotlin)?</p>
  
  <p>Thanks </p>