ho un errore che mi viene generato quando faccio una query di tipo update da quanto il sito è stato trasformato da http in https
B4X:
Dim query As String ' aggiorna la lista delle domande risposte
Dim query As String = "UPDATE `tb01` SET `ms_gpt_01_05` = '" & ls.Get(2).As(String).Trim.Replace("'","\'") & "', `ms_gpt_01_07` = 'true', tockenQ='" & q & "', tockenA='" & a & "', tockenQA='" & qa & "' WHERE `ms_gpt_01_01` = '" & ls.Get(0) & "';"
ExecuteRemoteQuery(query,"UpdateRecord")
Query:
UPDATE `tb01` SET `ms_gpt_01_05` = 'L\'ossigeno brucia quando entra in contatto con una fonte di calore, come una fiamma o una scintilla. Quando l\'ossigeno viene riscaldato, le sue molecole si dividono in due atomi di ossigeno più piccoli. Questi atomi più piccoli sono più reattivi e si combinano', `ms_gpt_01_07` = 'true', tockenQ=' 11', tockenA='100', tockenQA=' 111' WHERE `ms_gpt_01_01` = '271';
Sub:
Sub ExecuteRemoteQuery(Query As String, JobName As String)
Dim Job As HttpJob
Job.Initialize(JobName, Me)
Job.PostString("https://miasmart.it/apiwebmiasmart/query.php", Query)
End Sub
ERROR:
javax.net.ssl.SSLPeerUnverifiedException: Hostname miasmart.it not verified (no certificates)
Dove sbaglio o meglio ancora cosa manca, visto che la select funziona da dio?
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...
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...