title: Getting 401 unauthorized error in retrofit?
body: <p>Error <code>401 unauthorized</code> means request is denied due to invalid credentials. I am making request to <code>https</code> URL using retrofit and getting <code>401 unauthorized</code> while doing <code>curl https://external:userName@api-staging.xyz.com/user/get</code> it works perfectly for me (getting expected output).</p>
  
  <p>There is nothing wrong with the <code>Retrofit</code> implementation in my <code>application</code> because other calls is working fine. Is that something that I cannot pass such URL to <code>retrofit.setEndpoint</code>? </p>