# \[Plugin\] Http/s REST, blueprintable JSON query and Parse API manager \[VaRest\]

**URL:** <https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [July 17, 2014, 12:32am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725 "2014-07-17T00:32:03Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![R4VANG3R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@R4VANG3R](https://forums.unrealengine.com/u/R4VANG3R)\
**Post date:** [October 14, 2016, 11:52am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/130 "2016-10-14T11:52:55Z")

</div>

Events not firing

I’m having some trouble with the response events, in my game instance class everything works as expected. However in my player state the complete / fail events don’t fire.

 ![request.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/e/4eed3e08728a41e481812e0af524fb6dc8221a8b.png)  
 ![fire.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/2/93224508b035efa65987127673aaafeab777a136.png)  
 ![complete.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/2/732e00ce304cb2bcabe06a3870da9b2d899c9bec.png)

---

<div class="post-metadata">

**Author:** ![AilurusFulgen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AilurusFulgen](https://forums.unrealengine.com/u/AilurusFulgen)\
**Post date:** [October 25, 2016, 10:58am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/131 "2016-10-25T10:58:51Z")

</div>

VaRest Log’s requests on my Dedicated Server…

LogVaRest: Request(json): POST 127.0.0.1:27017/Auth  
JSON({  
“Email”: “Email”,  
“Password”: “Password”  
})

The problem is this is sensitive data. And if other players host a dedicated server then the hosts will see the passwords of other players. Is there anyway I can silent the log for requests or specific requests?

---

<div class="post-metadata">

**Author:** ![Khayalan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Khayalan](https://forums.unrealengine.com/u/Khayalan)\
**Post date:** [October 30, 2016, 9:20pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/132 "2016-10-30T21:20:38Z")

</div>

Hey 🙂  
I try something really simple…  
I send a request to a server and want just to return the content of this webpage, but i cant get it working.

[![](https://i.imgur.com/vgXUmTp.png) ](https://i.imgur.com/vgXUmTp.png)

-Khayalan

---

<div class="post-metadata">

**Author:** ![carsenk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carsenk](https://forums.unrealengine.com/u/carsenk)\
**Post date:** [February 25, 2017, 9:48am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/133 "2017-02-25T09:48:58Z")

</div>

How would you take the “response content” of a POST request and attach it to a global variable?

Like for example, your POST to my login on my server with a valid username/password, it comes back with a response that looks like:

> [@](#):
>
> {  
> “status”: “success”,  
> “token”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ODgzMDQ1ZmM3YmFjMjM1ZDBlYTNjNjAiLCJlbWFpbCI6ImNhcnNlbmtAZ21haWwuY29tIiwidXNlcm5hbWUiOiJDYXJzZW4iLCJleHAiOjE0ODg2MTg3MzIsImlhdCI6MTQ4ODAxMzkzMn0.I-pyYsRpSgAx2KcTZCyx1n\_d8d2fufQo6wYfILcWuug”,  
> “username”: “TestUser”,  
> “numUnopenedCardPacks”: 22,  
> “currency”: 26750  
> }

I want to somehow take that “token” value and attach it/set it to a global variable called “Token” to be pulled in later GET requests via Set Header as it used for the JWT auth system I have on the server and it would need it for subsequent requests to the server to authenticate valid GET requests in the header.

This is a screenshot of my current blueprint for the POST request, I am not sure what I could do as far as taking the response content and formatting it out to just pull in the token value?

 ![147de996d1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/8/e98c0b8c7a542cedbac805d645950da4db894d97.png)

---

<div class="post-metadata">

**Author:** ![walldiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@walldiv](https://forums.unrealengine.com/u/walldiv)\
**Post date:** [March 31, 2017, 7:10am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/137 "2017-03-31T07:10:39Z")

</div>

I have 3 returned results coming from an SQL query - they are stored in the JSON object as follows - i can echo them all via php and show them on a web page - but i cant seem to access them in UE4 from the response object - how can i get the response object as an array and iterate it?

```php
//DB ACTION
$result = mysql_query("SELECT * FROM characters a, accounts b WHERE a.accountid_fk = b.id AND b.username = '$username'") or die("Failed to get characters database ".mysql_error());

if (mysql_num_rows($result) > 0){
    while($row = mysql_fetch_assoc($result)) {
        $Name = $row'name'];
        
        $array] = array(
        'Status' => "1",
        'CharNames' => "$Name"
        );
    }
}

$json = json_encode($array);

echo utf8_encode($json);

```

in IE:

[http://puu.sh/v4fPB/e261312166.png](http://puu.sh/v4fPB/e261312166.png)

---

<div class="post-metadata">

**Author:** ![walldiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@walldiv](https://forums.unrealengine.com/u/walldiv)\
**Post date:** [March 31, 2017, 5:53pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/138 "2017-03-31T17:53:47Z")

</div>

SOLVED

Properly returning & using json object with arrays inside of it:

> **[HELP with VaRest Plugin and getting a json responce](https://forums.unrealengine.com/showthread.php?139618-HELP-with-VaRest-Plugin-and-getting-a-json-responce&p=681425&viewfull=1#post681425)**
>
> PROBLEM SOLVED SEE LAST POST IF YOU ARE INTERESTED IN THE ANSWER . THANKS k i deleted my other thread because i think i didn’t explain myself clearly and people were getting confused when they were trying to answer me. so what i am trying to do is...

---

<div class="post-metadata">

**Author:** ![Vahid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vahid](https://forums.unrealengine.com/u/Vahid)\
**Post date:** [August 23, 2017, 7:55pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/139 "2017-08-23T19:55:37Z")

</div>

Hello guys,  
I want to know is it possible to use OAuth 1.0 with this plugin ? and set Consumer Key & Consumer Secret

---

<div class="post-metadata">

**Author:** ![Fraughtsquid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fraughtsquid](https://forums.unrealengine.com/u/Fraughtsquid)\
**Post date:** [August 29, 2017, 1:52pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/140 "2017-08-29T13:52:40Z")

</div>

I can not find construct parse request.

---

<div class="post-metadata">

**Author:** ![plangton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@plangton](https://forums.unrealengine.com/u/plangton)\
**Post date:** [October 5, 2017, 10:05am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/141 "2017-10-05T10:05:51Z")

</div>

Does this plugin give access to cookies as well ?

---

<div class="post-metadata">

**Author:** ![hydrojan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hydrojan](https://forums.unrealengine.com/u/hydrojan)\
**Post date:** [November 17, 2017, 2:37pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/142 "2017-11-17T14:37:14Z")

</div>

Hello, Is it possible to live stream game via this plugin?

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [December 13, 2017, 6:02pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/143 "2017-12-13T18:02:36Z")

</div>

I am missing access to response bytes or atleast FHttpResponsePtr. It is stored only in local variable (VaRestRequestJSON.cpp@457). I am not sure if there is some other way to access response bytes as some of my calls are returning byte stream and I need to parse it.

---

<div class="post-metadata">

**Author:** ![thewenneur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thewenneur](https://forums.unrealengine.com/u/thewenneur)\
**Post date:** [January 28, 2018, 4:44pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/144 "2018-01-28T16:44:56Z")

</div>

Hello, I use VarRest for my project (Blueprint) but I can’t export to HTML5 or even launch to this platform… Can you help me ? Please I really need this amayzing work…

---

<div class="post-metadata">

**Author:** ![vypszo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vypszo](https://forums.unrealengine.com/u/vypszo)\
**Post date:** [March 17, 2018, 12:37pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/145 "2018-03-17T12:37:41Z")

</div>

I cannot get the 4.19 source from github to compile (I only need windows x32&x64 not all the linux/iOS/android bs)

Edit: I fixed it.

---

<div class="post-metadata">

**Author:** ![TheParadox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheParadox](https://forums.unrealengine.com/u/TheParadox)\
**Post date:** [May 31, 2018, 9:34pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/146 "2018-05-31T21:34:46Z")

</div>

Hmm… okay, so I hit an issue, not sure why it is an issue BUT:  
I am trying to get a bunch of stars from a mysql databas, via PHP in JSON format to UE4.  
The webpart works, UE4 gets the data so everything works.

Up until I try to loop through the data UE4 received.  
SO the data is sent in the following format:  
{  
“stars”:  
{  
“n”:“starname”,  
“t”:5000.0,  
“x”:1,  
“y”:1,  
“z”:1,  
“v”:1  
}  
]  
}

the array has 5575 elements (stars)

an image of the blueprint:  
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-tempid”:“temp\_139251\_1527802320210\_778”}[/ATTACH]

so when it runs - it crashes UE4, nothing is printed (UE4 freezes before the crash) and then it tells me that I exceeded the max number of UObjects (set to 8+ million)  
In otherwords - how on earth is this creating 8+ million UObjects when it is supposed to loop no more than 5575 times?

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cde3b98a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cde3b98a](https://forums.unrealengine.com/u/anonymous_user_cde3b98a)\
**Post date:** [June 22, 2018, 6:23am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/147 "2018-06-22T06:23:23Z")

</div>

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.

> **[HTML5 Training Institute | Responsive Training Courses by Experts](https://www.zuaneducation.com/html5-training-courses)**
>
> Learn how to create mobile friendly website with help of our Html5 Training courses. Enroll our Institutes to have a better career in responsive designing.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7149a070](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7149a070](https://forums.unrealengine.com/u/anonymous_user_7149a070)\
**Post date:** [December 12, 2018, 9:02am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/149 "2018-12-12T09:02:00Z")

</div>

I **urgently** need missing Linux binaries for 4.19.2.

They are missing, even when building from the github source. Please ASAP I have a live game with paying users relying on this.

---

<div class="post-metadata">

**Author:** ![kjetilhj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kjetilhj](https://forums.unrealengine.com/u/kjetilhj)\
**Post date:** [June 18, 2019, 2:01pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/151 "2019-06-18T14:01:47Z")

</div>

Is it possible to convert an asset reference and store that as a string? Kind of like the “Export as JSON” for the datatables". And also then read the json string value and convert that back again to an actual texture reference.  
Edit: I got it working, had to do a few small c++ blueprintlibrary functions for this.

 ![Varest.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/a/ba9f7c0a8e1d8c58e25946484103c76a0b629bf3.png)

---

<div class="post-metadata">

**Author:** ![ycz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ycz](https://forums.unrealengine.com/u/ycz)\
**Post date:** [July 13, 2019, 4:57pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/152 "2019-07-13T16:57:17Z")

</div>

Amazing Plugin!  
I tried to create a full blueprint project Only using this plugin.But when I package / build, the error like “Visual Studio 2017 must be installed in order to build this target” showed up .How can I solve this problem?Thanks.  
Also when I tried to package IOS,these showed up:  
Remote compiling requires a server name. Please specify one in the Remote Server Name settings field.

How can I build/Package my project without Installing VS2017 or a MAC ?  
Thanks.

---

<div class="post-metadata">

**Author:** ![dMsLT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dMsLT](https://forums.unrealengine.com/u/dMsLT)\
**Post date:** [December 16, 2019, 4:40pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/153 "2019-12-16T16:40:02Z")

</div>

This is great. Exactly what I needed. Bumping the version to 4.24 any time soon? Thanks.

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [December 17, 2019, 8:45am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/154 "2019-12-17T08:45:22Z")

</div>

> [@dMsLT](#):
>
> This is great. Exactly what I needed. Bumping the version to 4.24 any time soon? Thanks.

Update is on the way. We’re wainting for plugin to be reviewed by Epic.

[Previous page](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725.md?page=6)

[Next page](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725.md?page=8)
