- Home /
Is there a library or package for HTTP communication with a server?
I want to create an HTTP REST API on a cloud server (maybe EC2, or Digital Ocean) for the purpose of capturing stats/data, and pushing news/notifications into the game.
Are there any libraries / packages / out-of-the-box features for doing this sort of thing in Unity? Every time I search for something related to "server", I get tutorials or questions related to multiplayer networking, so I figured I would ask here!
Thanks!
Answer by asafsitner · Oct 22, 2014 at 08:32 AM
There's the WWW and WWWForm classes, with which you can use for GET/POST requests.
They also suport HTTPS out of the box, which is neat.
Besides these, you can use .Net too, for instance with HttpWebRequest and many of the classes in the System.Net.Http namespace.
In the future, maybe try to add 'web' to your Google queries, e.g. 'unity communicate with web server' instead of 'unity communicate with server'.
Your answer
![](https://koobas.hobune.stream/wayback/20220613165639im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I send data to a cloud server like Amazon EC2? 1 Answer
Linux server .so files not loaded 0 Answers
Sending an HTTP POST request with JSON body 1 Answer
Upload json to cloud 0 Answers
Multipart image upload 0 Answers