B4J Question Crash accessing a WEB site

rossati

Active Member
Licensed User
Longtime User
Hi

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:
The script snippet that causes the error is:
B4X:
    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
Thanks for any suggestions
 

EnriqueGonzalez

Expert
Licensed User
Longtime User
I can try but why does it crash only on third connection?
B4x side may not be the problem. Most likely the server is doing something different.

You could also use a compilar option
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…