It is possible that Retrofit does not support putting the username and password in the URL (due to security reasons).
This kind of authentication is called Basic Authentication, and you can pass these parameters in an HTTP header as well.
Here's an article about how that can be done in Retrofit:...
@IshitaSinha i was did String postModelDate = Const.convertServerDateToOnlyDate(postmodel.getDueDate()) == null ? "" : Const.convertServerDateToOnlyDate(postmodel.getDueDate());