x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 30 '17 at 12:33 PM in Blueprint Scripting

avatar image

VKleinMP
21 1 2 5

avatar image Tiega Mar 30 '17 at 01:44 PM

Why? I would recommend to do configuration stuff via Database(MySQL etc)

avatar image PlainBane Mar 30 '17 at 01:51 PM

There is VaRest plugin, this might do what you want. github.com/ufna/VaRest

avatar image Xosh project Mar 30 '17 at 03:51 PM

MrGeek, I think he want to be the guys that wait for request, basically the server and not the client like VaRest allow you to do.

avatar image PlainBane Mar 30 '17 at 04:14 PM

Yea, I guess you are right. In that case UE4 c++ Sockets might come in handy starting point, but if POST is used it will need some heavy modifications. I think UE4 has some built in classes for working with http , but thats outside of my experience. UDP_Socket_Sender_Receiver

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Mar 30 '17 at 04:01 PM

avatar image

Xosh project
351 3 6 15

(comments are locked)
10|2000 characters needed characters left

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?

more ▼

answered Oct 04 '17 at 08:49 AM

avatar image

Fitz45
1

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question