tufanv Expert Licensed User Longtime User Jan 5, 2017 #1 Hello My app is giving an error of status code 0 while connecting to a https altough i used initializeacceptall as always. The exact error says : An SSL error has occurred and a secure connection to the server cannot be made. Exact same procedure works in another apps that confuses me . I use below simple sub Code: Copy Sub ExecuteRemoteQuery(Query As String, JobName As String) Dim job As HttpJob job.Initialize(JobName, Me) job.PostString("https://...", Query) End Sub edit: same thing happens when i try another way of getting data with : Code: Copy Dim connection As HttpJob connection.Initialize("grafik",Me) connection.download2("https://...", Array As String ("action", "yeniapp")) Last edited: Jan 5, 2017
Hello My app is giving an error of status code 0 while connecting to a https altough i used initializeacceptall as always. The exact error says : An SSL error has occurred and a secure connection to the server cannot be made. Exact same procedure works in another apps that confuses me . I use below simple sub Code: Copy Sub ExecuteRemoteQuery(Query As String, JobName As String) Dim job As HttpJob job.Initialize(JobName, Me) job.PostString("https://...", Query) End Sub edit: same thing happens when i try another way of getting data with : Code: Copy Dim connection As HttpJob connection.Initialize("grafik",Me) connection.download2("https://...", Array As String ("action", "yeniapp"))
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2017 #2 tufanv said: Exact same procedure works in another apps that confuses me . Click to expand... With the same link? Upvote 0
tufanv said: Exact same procedure works in another apps that confuses me . Click to expand... With the same link?
tufanv Expert Licensed User Longtime User Jan 5, 2017 #3 yes. also , other apps are working fine on my phone they can retrieve the info from the server. ( i didnt try to re build them i just try them from the previously installed builds on my phone ) Erel said: With the same link? Click to expand... Upvote 0
yes. also , other apps are working fine on my phone they can retrieve the info from the server. ( i didnt try to re build them i just try them from the previously installed builds on my phone ) Erel said: With the same link? Click to expand...
tufanv Expert Licensed User Longtime User Jan 5, 2017 #4 Erel said: With the same link? Click to expand... I just checked my other app which has this code : Code: Copy Dim connection As HttpJob connection.Initialize("verial",Me) connection.download2("https://..", Array As String ("action", "borsaveriler")) and it works . ( connected with debug ) . the link is %100 same Upvote 0
Erel said: With the same link? Click to expand... I just checked my other app which has this code : Code: Copy Dim connection As HttpJob connection.Initialize("verial",Me) connection.download2("https://..", Array As String ("action", "borsaveriler")) and it works . ( connected with debug ) . the link is %100 same
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2017 #5 What is the value of #ATSEnabled attribute? Upvote 0
tufanv Expert Licensed User Longtime User Jan 5, 2017 #6 Erel said: What is the value of #ATSEnabled attribute? Click to expand... #ATSEnabled: True Upvote 0
tufanv Expert Licensed User Longtime User Jan 5, 2017 #7 tufanv said: #ATSEnabled: True Click to expand... Old apps that are working does not have this ( because of old version of b4i) so this may be the reason but altough it is https why does it get blocked ? Last edited: Jan 5, 2017 Upvote 0
tufanv said: #ATSEnabled: True Click to expand... Old apps that are working does not have this ( because of old version of b4i) so this may be the reason but altough it is https why does it get blocked ?
JanPRO Well-Known Member Licensed User Longtime User Jan 5, 2017 #8 Hi, does the error occur when you set #ATSEnabled to false? Jan Upvote 0
tufanv Expert Licensed User Longtime User Jan 6, 2017 #9 JanPRO said: Hi, does the error occur when you set #ATSEnabled to false? Jan Click to expand... No ATSenabled=false fixes the problem. Upvote 0
JanPRO said: Hi, does the error occur when you set #ATSEnabled to false? Jan Click to expand... No ATSenabled=false fixes the problem.
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2017 #10 You can exclude this specific url: https://www.b4x.com/android/forum/threads/74281/#content Upvote 0
tufanv Expert Licensed User Longtime User Jan 6, 2017 #11 Erel said: You can exclude this specific url: https://www.b4x.com/android/forum/threads/74281/#content Click to expand... Thans Erel but when ats will be mandatory , will excluded domains also work ? and altough it is https , is it normal to get this error ? Upvote 0
Erel said: You can exclude this specific url: https://www.b4x.com/android/forum/threads/74281/#content Click to expand... Thans Erel but when ats will be mandatory , will excluded domains also work ? and altough it is https , is it normal to get this error ?
JanPRO Well-Known Member Licensed User Longtime User Jan 6, 2017 #12 Are you using InitializeAcceptAll because your certificate is self signed? When yes: the certificate must be issued by a certificate authority (or installed by the user). When not: can you post the hostname of your server? Last edited: Jan 6, 2017 Upvote 0
Are you using InitializeAcceptAll because your certificate is self signed? When yes: the certificate must be issued by a certificate authority (or installed by the user). When not: can you post the hostname of your server?
tufanv Expert Licensed User Longtime User Jan 7, 2017 #13 JanPRO said: Are you using InitializeAcceptAll because your certificate is self signed? When yes: the certificate must be issued by a certificate authority (or installed by the user). When not: can you post the hostname of your server? Click to expand... I use initializeacceptall all the time because it is https. Upvote 0
JanPRO said: Are you using InitializeAcceptAll because your certificate is self signed? When yes: the certificate must be issued by a certificate authority (or installed by the user). When not: can you post the hostname of your server? Click to expand... I use initializeacceptall all the time because it is https.
JanPRO Well-Known Member Licensed User Longtime User Jan 7, 2017 #14 When your SSL certificate is not self-signed you can also use the normal Initialize method, is your certificate self-signed? Jan Upvote 0
When your SSL certificate is not self-signed you can also use the normal Initialize method, is your certificate self-signed? Jan
tufanv Expert Licensed User Longtime User Jan 7, 2017 #15 JanPRO said: When your SSL certificate is not self-signed you can also use the normal Initialize method, is your certificate self-signed? Jan Click to expand... no not self signed. But as i remember , i couldnt run it with initialize , it only worked with initializeacceptall. I will try to change to initialize and look what happens Upvote 0
JanPRO said: When your SSL certificate is not self-signed you can also use the normal Initialize method, is your certificate self-signed? Jan Click to expand... no not self signed. But as i remember , i couldnt run it with initialize , it only worked with initializeacceptall. I will try to change to initialize and look what happens
JanPRO Well-Known Member Licensed User Longtime User Jan 7, 2017 #16 JanPRO said: can you post the hostname of your server? Click to expand... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2017 #17 tufanv said: Thans Erel but when ats will be mandatory , will excluded domains also work ? and altough it is https , is it normal to get this error ? Click to expand... 1. Yes. 2. When ATS is enabled (without exclusions) then only valid SSL connections will work. Upvote 0
tufanv said: Thans Erel but when ats will be mandatory , will excluded domains also work ? and altough it is https , is it normal to get this error ? Click to expand... 1. Yes. 2. When ATS is enabled (without exclusions) then only valid SSL connections will work.