My first problem was:
How to use file upload from B4A in ssl (https://) on the [WebApp Server] ? to avoid :
Error: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I did this solution:
The correct behavior is to reject unknown certificates unless you explicitly configure it to accept all certificates.
Follow these steps:
- Uncheck HttpUtils2 library
- Add HttpUtils2 modules (from http://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992)
- Check StringUtils and Http libraries
- Change hc.Initialize in HttpUtils2Service to hc.InitializeAcceptAll
Now the HttpJob is success with j.success = true ... not really.
Because on the [WebApp Server] there is a filter srvr.AddFilter("/login/members/*", "MembersFilter", False)
the B4A application HttpJob return success = true but with in j.GetString the source of the "/index.html". this the welcome page with no filter. And the file is not uploaded.
Any idea ...
How to use file upload from B4A in ssl (https://) on the [WebApp Server] ? to avoid :
Error: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I did this solution:
The correct behavior is to reject unknown certificates unless you explicitly configure it to accept all certificates.
Follow these steps:
- Uncheck HttpUtils2 library
- Add HttpUtils2 modules (from http://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992)
- Check StringUtils and Http libraries
- Change hc.Initialize in HttpUtils2Service to hc.InitializeAcceptAll
Now the HttpJob is success with j.success = true ... not really.
Because on the [WebApp Server] there is a filter srvr.AddFilter("/login/members/*", "MembersFilter", False)
the B4A application HttpJob return success = true but with in j.GetString the source of the "/index.html". this the welcome page with no filter. And the file is not uploaded.
Any idea ...