title: I got different results when call simple GET Request with curl and java okhttp
body: <p>I call below URL using cURL</p>
  <pre><code>curl 'http://username:password@192.168.1.108/merlin/Login.cgi'
  </code></pre>
  <p>and I get proper response</p>
  <pre><code>{ &quot;Session&quot; : &quot;0xb3e01810&quot;, &quot;result&quot; : { &quot;message&quot; : &quot;OK&quot;, &quot;num&quot; : 200 } }
  </code></pre>
  <p>I get the same response from browser (directly open link), postman and even with NodeJs,</p>
  <p>but I get response code 401 when send GET_Request to this url using okhttp in java</p>
  <p>my java code with okhttp is</p>
  <pre><code>    Request request = new Request.Builder()
                              .url(&quot;http://username:password@192.168.1.108/merlin/Login.cgi&quot;)
                              .build();
  
      try {
        com.squareup.okhttp.Response response = client.newCall(request).execute();
        System.out.println(response.code());
      } catch (IOException e) {
        e.printStackTrace();
      }
  </code></pre>