The name of the class and all of the examples use "http", so I wanted to make sure "https" requests are supported and work securely (i.e. don't switch to "http" under the hood).
Thanks
Best Answer
C
Customer Support
said
almost 7 years ago
Hey Baris,
When using the getHttp() method, the value is retained, and never converted. Therefore any Https requests you make will remain secure and the url unaltered.
var response = Spark.getHttp("https://www.google.com").get().getResponseString();
Spark.setScriptData("Random String", response);
and it returned google's https home page.
J
Jeff Amiel
said
almost 7 years ago
And google.com http requests get forwarded to https - so, yeah - it's not switching to http under the hood as I woudlnt' have gotten results otherwise.
B
Baris Tumerkan
said
almost 7 years ago
Thanks Jeff! You're probably right, but Google could still default to http if the client doesn't support https at all, so an official word would be nice.
(for instance, apparently, if you add ?nord=1 at the end of the url, it doesn't switch to https. So something similar could happen if the client doesn't support https)
J
Jeff Amiel
said
almost 7 years ago
Baris - fair enough - and I'm sure GameSparks will weigh in soon enough.
(although I just tested a url that ONLY supports https (I know because I helped developed the system) and things worked as expected)
B
Baris Tumerkan
said
almost 7 years ago
Thanks Jeff! In that case, and since there is no official answer, it seems safe to assume https works correctly.
Customer Support
said
almost 7 years ago
Answer
Hey Baris,
When using the getHttp() method, the value is retained, and never converted. Therefore any Https requests you make will remain secure and the url unaltered.
Baris Tumerkan
The name of the class and all of the examples use "http", so I wanted to make sure "https" requests are supported and work securely (i.e. don't switch to "http" under the hood).
Thanks
Hey Baris,
When using the getHttp() method, the value is retained, and never converted. Therefore any Https requests you make will remain secure and the url unaltered.
Hope this helps.
- Tony
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstJeff Amiel
Yes it does. I just tried:
and it returned google's https home page.
Jeff Amiel
And google.com http requests get forwarded to https - so, yeah - it's not switching to http under the hood as I woudlnt' have gotten results otherwise.
Baris Tumerkan
Thanks Jeff! You're probably right, but Google could still default to http if the client doesn't support https at all, so an official word would be nice.
(for instance, apparently, if you add ?nord=1 at the end of the url, it doesn't switch to https. So something similar could happen if the client doesn't support https)
Jeff Amiel
Baris - fair enough - and I'm sure GameSparks will weigh in soon enough.
(although I just tested a url that ONLY supports https (I know because I helped developed the system) and things worked as expected)
Baris Tumerkan
Thanks Jeff! In that case, and since there is no official answer, it seems safe to assume https works correctly.
Customer Support
Hey Baris,
When using the getHttp() method, the value is retained, and never converted. Therefore any Https requests you make will remain secure and the url unaltered.
Hope this helps.
- Tony
Baris Tumerkan
Great, thanks!
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics