0

I like to get json data from a external webpage and use this data in my Xpages. the external website have the protocol https.

so I can't use

var http_request = new XMLHttpRequest();

http_request.open("GET","XX");

has anybody a hint for me?

adminfd
  • 1,006
  • 7
  • 14

3 Answers3

4

Alternatively you could use JSONP for your GET request:

http://dojotoolkit.org/reference-guide/1.8/dojo/io/script.html

Sven Hasselbach
  • 10,455
  • 1
  • 18
  • 26
3

Get it in backend with f.e. an XPage and HttpURLConnection class. This XPage can serve the JSON data to the client so you can use XMLHttpRequest.

Panu Haaramo
  • 2,932
  • 19
  • 41
0

you can use XMLHttpRequest object for Https protocol.

see https://stackoverflow.com/a/6301294/1029621

Community
  • 1
  • 1
Eugen Halca
  • 1,775
  • 2
  • 13
  • 26