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
over 6 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.
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
B
Baris Tumerkan
said
over 6 years ago
Thanks Jeff! In that case, and since there is no official answer, it seems safe to assume https works correctly.
J
Jeff Amiel
said
over 6 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
over 6 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
over 6 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.
J
Jeff Amiel
said
over 6 years ago
Yes it does. I just tried:
var response = Spark.getHttp("https://www.google.com").get().getResponseString();
Spark.setScriptData("Random String", response);
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 Newest FirstBaris Tumerkan
Great, thanks!
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
Thanks Jeff! In that case, and since there is no official answer, it seems safe to assume https works correctly.
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! 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
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.
Jeff Amiel
Yes it does. I just tried:
and it returned google's https home page.
-
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