My app queries other web services via SSL. I've used Apache HttpClient to create https POST calls on my server to other web services. When I deployed my app to App Engine I got the following error:
java.lang.NoClassDefFoundError: javax.net.ssl.KeyManagerFactory is a restricted class.
Please see the Google App Engine developer's guide for more details.
My question is, how can I make HTTPS calls on Google App engine?
Apache HttpClient is not supported out-of-the-box by App Engine. You will have to write a custom ConnectionManager that wraps UrlFetch. This post explains it pretty well and provides you with sample code. I used that code successfully on App Engine before.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With