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
  • 956
  • 6
  • 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,445
  • 1
  • 17
  • 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,862
  • 17
  • 38
0

you can use XMLHttpRequest object for Https protocol.

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

Community
  • 1
  • 1
Eugen Halca
  • 1,765
  • 2
  • 12
  • 25