In my B4J program I send a pair of mails via a PHP script to a WEB site, the first pair is sent correctly, the second causes the first mail to crash.
The error is as follows:
ResponseError. Reason: javax.net.ssl.SSLPeerUnverifiedException: Hostname www.condorinformatique.com not verified (no certificates), Response:
Dim job As HttpJob
job.Initialize("Job", Me)
job.PostMultipart("https://" & webMailer,dataForControl,Null) ' tells supervisor
Wait For (job) JobDone(job As HttpJob)
If Not(job.Success) Then
fx.Msgbox(MainForm,job.GetString,title)
End If
job.Release
Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library. Starting from v2.90 it is very simple to initialize the internal http client with the 'accept all' option. The accept all option means that certificates will not be validated. It is done by adding the...