rossati Active Member Licensed User Longtime User Mar 9, 2023 #1 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: Click to expand... The script snippet that causes the error is: B4X: Copy 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
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: Click to expand... The script snippet that causes the error is: B4X: Copy 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 Mar 9, 2023 #2 rossati said: "https://" Click to expand... try without the s, it seems that the page cannot provide a valid ssl Upvote 0
rossati said: "https://" Click to expand... try without the s, it seems that the page cannot provide a valid ssl
rossati Active Member Licensed User Longtime User Mar 9, 2023 #3 Thanks Enrique I can try but why does it crash only on third connection? Upvote 0
EnriqueGonzalez Expert Licensed User Longtime User Mar 9, 2023 #4 rossati said: I can try but why does it crash only on third connection? Click to expand... B4x side may not be the problem. Most likely the server is doing something different. You could also use a compilar option [B4X] OkHttpUtils2 / iHttpUtils2 and accept all option 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... www.b4x.com Upvote 0
rossati said: I can try but why does it crash only on third connection? Click to expand... B4x side may not be the problem. Most likely the server is doing something different. You could also use a compilar option [B4X] OkHttpUtils2 / iHttpUtils2 and accept all option 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... www.b4x.com
rossati Active Member Licensed User Longtime User Mar 10, 2023 #5 Hi After update to sdk 14.0.1 the program doesn't crash, the only drawback is that it is now signposted: WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing Click to expand... Upvote 0
Hi After update to sdk 14.0.1 the program doesn't crash, the only drawback is that it is now signposted: WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Mar 13, 2023 #6 You can ignore it. Upvote 0