title: Http GET request with parameters in Okhttp Android Kotlin
body: <p>I am trying to process Http GET request with parameters using Okhttp in Android Kotlin.</p>
  <p>As there is no GET resource found on documentation and other internet resources didn't work, how can I set GET request in Okhttp with pre defined parameters.</p>
  <p>Builder code with lack of GET method</p>
  <pre><code>val parameter  = &quot;{\&quot;phone\&quot;: \&quot;$phone\&quot;}&quot;
  
  val request = Request.Builder().url(weburl)
  .header(&quot;User-Agent&quot;, &quot;OkHttp Headers.java&quot;)
  .addHeader(&quot;Content-Type&quot;, &quot;application/json&quot;)
  .addHeader(&quot;Accept&quot;, &quot;application/json&quot;)
  //.method(&quot;GET&quot;,parameter.toRequestBody())
  .build()
  </code></pre>
  <p>Output result
  <a href="https://i.stack.imgur.com/d8QRs.png" rel="nofollow noreferrer">enter image description here</a></p>