Unreal act as web server and retrieve data out of post request?
A website (configurator) needs to communicate with my Unreal program using Http(Rest) POST requests. The Unreal side must act as a web server in order to, on request, receive string data from a POST request and visualize a procedural created scene accordingly. How do I make this? How do I tell Unreal to watch for an Http request? There is the LE Http request plugin, but it seams to only emulate the client side. Please help, it's bugging me for some time now.
asked Mar 30 '17 at 12:33 PM in Blueprint Scripting
If I follow you well, you search a way to listen some request through your client? So you want your client to be a server.
I don't know any plugins that allow your client to came a HTTP server, if you want to do this, you'll need to build your own TCP/UDP protocol inside ue4, if you never heard about network programming, you should start searching for TCP/UDP server.
they are some good example of HTTP server out here. Maybe you could implement your own inside unreal, but honestly I wont recommend you to do this, I personally prefer to have my server on another machine and let client send request to himself and if I need to talk to specific client, they are always listen to what we call a «socket».
But anyway let me know if this help you and please let me know why you need to have a server inside unreal for a website.
answered Mar 30 '17 at 04:01 PM
I've found this on the marketplace yersterday: https://www.unrealengine.com/marketplace/unreal-web-server
It seems that it's an HTTP server allowing you to handle HTTP requests, but I didn't test it myself. Does anyone know more about this?
answered Oct 04 '17 at 08:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here