How to POST using VaRest
Hi, I'm using this plugin, https://forums.unrealengine.com/showthread.php?13509-Plugin-Http-s-REST-blueprintable-JSON-and-Parse-REST-API-manager-at-once-%28VaRest%29 and this guide for it https://github.com/ufna/VaRest/wiki/Plugin-Usage to try and use GET and POST requests but I'm having a bit of trouble getting it to accomplish anything. This is what I have so far.
I don't have much experience with Rest so the solution might be much easier than I thought. This is the site I'm trying to POST to http://www.posttestserver.com/ but the only thing I've seem to have got working is opening a webpage with a URL. It's going through the code, I think it's just missing something crucial that tells it to post. Any help would be much appreciated.
asked Jan 16 '15 at 07:11 PM in Blueprint Scripting
In order to get my post request to work, I had to Set Request Object from my JSON Data Object after I finished setting all the fields for the data. Before I did this, it was just sending null values!
answered Apr 08 '17 at 07:37 AM
Based on your screenshot, there are two things missing (one of which is kind of important).
The important part is: do the "Get Request Object" on your "VA JSONRequest" and use that for your "Set Field".
Other than that, I greatly suggest you Bind "OnRequestComplete" and "OnRequestFail" from the same "VA JSONRequest", otherwise it's going to be a bit tricky to figure out what went wrong (or right ;)) Use the "Get Response Object" from the "VA JSONRequest" in order to see what the server is returning to you.
Hope this helps get you on your way.
answered Jan 16 '15 at 11:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here