I have followed the answer to HTTP authentication in J2ME by setting the request property for HttpConnection object with
setRequestProperty("Authorization", "Basic "+ encodedUserAndPass)
but it didn't work.
- When make request to Http protocol -> 401 Unauthorized
- When make request to Https protocol -> javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entity.
Has anyone have the problem solved? Thanks in advance.