I have got a problem. I use retrofit first time. Why when I use http protocol all is good, but when I use https protocol, retrofit return this error:
java.net.ProtocolException: Expected ':status' header not present
My URLs:
http://portenshop.000webhostapp.com/androidAppScripts/hashedLogin.php // is good
https://portenshop.000webhostapp.com/androidAppScripts/hashedLogin.php // isn't good
I found some articles on the internet about this but nothing helped
EDIT
This is my WebAPIInterface:
@FormUrlEncoded
@POST("androidAppScripts/hashedLogin.php")
fun login(@Field("method") method: String,
@Field("username") username: String,
@Field("password") password: String ): retrofit2.Call<LoginModel>