- Home /
How do I send data to a cloud server like Amazon EC2?
I need to able to connect to a remote server to push data/stats, as well as pull down information from the remote server. Note that this is not a multiplayer networking request.
Are there are any libraries or packages meant for communicating via an HTTP or HTTPS JSON API on a remote webserver?
Hi there, I also need to connect to an amazon EC2 server, do you know how?, Im still looking for this info.
Hi, even i am looking for this.. is it possible to do ? if yes, please help?
Answer by Bunny83 · May 07, 2015 at 10:47 PM
There is no general valid definition of "a cloud service". There are some standardized protocols which they might use. Most define their own set of commands / services you can use. For amazon cloud service just look at their API page. You basically have those options in general:
Look up the API reference, see how a certain request should be done and use the WWW class in Unity to do the http requests.
The above point might be extended by using additional helpers like a JSON / XML parser / builder to actually prepare the data you have to send and to parse the result you get back.
Find a managed .NET library or framework (probably written in C#) for your desired API. In case of amazon you will find everything on their documetation pages.
Be prepared that things like that don't work like Unity. You don't just drag a cube over here and attach a script there. Read the documentation of the API to see what you can actually do and then make yourself clear what you actually want to do with the service they provide.
Since the topic of this question only scratches Unity it's "almost" an off-topic question. It's also way to unspecific.
This seams to be more complex than I thought, I will take a look at it, thanks!.
Your answer
Follow this Question
Related Questions
Can't Send a form to a server(POST) due to CORS error in a WEBGL build 1 Answer
Can anyone tell me what's wrong in this, I try to post values to API 0 Answers
Is there a library or package for HTTP communication with a server? 1 Answer
fromjson array ends up null 0 Answers
Unable to call external API (IBM Watson) via HTTP request? 1 Answer