简体   繁体   中英

JavaScript client for Restful webservice with SSL

I want to connect to a Java Restful webservice that uses SSL from a Javascript client. I could write standalone Java client that connects to the keystore and imports the certificates and could connect successfully. How can I achieve the same thing using Javascript, XMLHttpRequest. Thanks in advance for any pointers.

I'm not entirely sure I understand your question. But, to make a SSL asynchronous request against a server with JavaScript, the only change you need to make is to use https in your RESTful target URL instead of http.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM