# \[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:** 5

<div class="post-metadata">

**Author:** ![soulmapp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@soulmapp](https://forums.unrealengine.com/u/soulmapp)\
**Post date:** [November 22, 2015, 2:12am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/88 "2015-11-22T02:12:50Z")

</div>

Hi Everyone…  
Firstly would like to thank the creator of Va-Rast Plugin for ue4. Really enjoying using it and its features with REST API parse

---

<div class="post-metadata">

**Author:** ![soulmapp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@soulmapp](https://forums.unrealengine.com/u/soulmapp)\
**Post date:** [November 26, 2015, 8:29pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/89 "2015-11-26T20:29:16Z")

</div>

Anyone got the VaRest\_1.1-r11 working with 4.10 in a BP project. ?  
VaRest\_1.1-r9 works fine in BP project in 4.9.2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_70687b4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70687b4c](https://forums.unrealengine.com/u/anonymous_user_70687b4c)\
**Post date:** [November 29, 2015, 11:55pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/90 "2015-11-29T23:55:21Z")

</div>

Yes, but need to compile plugin.  
If you want i can send you my compiled version (for 4.10).

---

<div class="post-metadata">

**Author:** ![EniGmaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EniGmaa](https://forums.unrealengine.com/u/EniGmaa)\
**Post date:** [December 1, 2015, 10:20am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/91 "2015-12-01T10:20:31Z")

</div>

can someone please please please make a tutorial. I have my database and php script but i dont know how to use this plugin to.send the json data to the php script in order to manipulate the mysql database . Please someone help ive been stuck fo ages thanks

---

<div class="post-metadata">

**Author:** ![Broc923](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Broc923](https://forums.unrealengine.com/u/Broc923)\
**Post date:** [December 3, 2015, 2:42am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/92 "2015-12-03T02:42:28Z")

</div>

Could you please upload your working version? I’m having issues with GIT. 😛

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [December 3, 2015, 7:56pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/93 "2015-12-03T19:56:28Z")

</div>

anyone trying access google search engine?

I got this response

> [@](#):
>
> LogVaRest: Response (400): \<!DOCTYPE html\>  
> \<html lang=en\>  
> \<meta charset=utf-8\>  
> \<meta name=viewport content=“initial-scale=1, minimum-scale=1, width=device-width”\>  
> \<title\>Error 400 (Bad Request)!!1\</title\>  
> \<style\>  
> _{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}_ \> body{background:url([//www.google.com/images/errors/robot.png](https://www.google.com/images/errors/robot.png)) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url([//www.google.com/images/branding/googlelogo/1x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png)) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url([//www.google.com/images/branding/googlelogo/2x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) no-repeat 0% 0%/100% 100%;-moz-border-image:url([//www.google.com/images/branding/googlelogo/2x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url([//www.google.com/images/branding/googlelogo/2x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}  
> \</style\>  
> \<a href=//www.google.com/\>\<span id=logo aria-label=Google\>\</span\>\</a\>  
> \<p\>\<b\>400.\</b\> \<ins\>That’s an error.\</ins\>  
> \<p\>Your client has issued a malformed or illegal request. \<ins\>That’s all we know.\</ins\>  
> LogVaRest: Response (400): \<!DOCTYPE html\>  
> \<html lang=en\>  
> \<meta charset=utf-8\>  
> \<meta name=viewport content=“initial-scale=1, minimum-scale=1, width=device-width”\>  
> \<title\>Error 400 (Bad Request)!!1\</title\>  
> \<style\>  
> _{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}_ \> body{background:url([//www.google.com/images/errors/robot.png](https://www.google.com/images/errors/robot.png)) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url([//www.google.com/images/branding/googlelogo/1x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png)) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url([//www.google.com/images/branding/googlelogo/2x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) no-repeat 0% 0%/100% 100%;-moz-border-image:url([//www.google.com/images/branding/googlelogo/2x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url([//www.google.com/images/branding/googlelogo/2x/googlelogo\_color\_150x54dp.png](https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png)) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}  
> \</style\>  
> \<a href=//www.google.com/\>\<span id=logo aria-label=Google\>\</span\>\</a\>  
> \<p\>\<b\>400.\</b\> \<ins\>That’s an error.\</ins\>  
> \<p\>Your client has issued a malformed or illegal request. \<ins\>That’s all we know.\</ins\>

I check against my web server, and the GET its correct, i copy from logs the URL and paste in firefox changing the domain to google and on firefox work, i got the expect response in JSON format. What i missed?

---

<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 3, 2015, 8:05pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/94 "2015-12-03T20:05:22Z")

</div>

Please provide the url to test, I’ll check it. Possible you should update the plugin from the **develop** branch, I’ve fixed some issues with GET requests in it.

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [December 3, 2015, 8:08pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/95 "2015-12-03T20:08:23Z")

</div>

i give you on private because its using my public api and have limit to 100 querys/day

---

<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 3, 2015, 8:11pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/96 "2015-12-03T20:11:06Z")

</div>

> [@knack;431149](#):
>
> i give you on private because its using my public api and have limit to 100 querys/day

Sure, pls PM me

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [December 4, 2015, 11:05am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/97 "2015-12-04T11:05:24Z")

</div>

yesterday i have a bad day with other php errors too, 3 hours without doing a simple task for get the mysql data and creating a array with the right format. Sometimes its better go to sleep and try next day hehe, i wake up and in five minutes …

i post here that simple code, perhaps can be useful for someone without too much php knowledge.

> [@](#):
>
> \<?php  
> /\*
> 
> \*/  
> error\_reporting(E\_ALL);
> 
> require(‘…/config/config.inc.php’); //common config vars  
> require(‘…/db/db.mysql.php’); // db\_query -\> mysqli\_db\_query… and the others  
> require(‘…/include/common.inc.php’); // connect to db && session && other common things
> 
> $json = file\_get\_contents(‘php://input’);  
> $json\_phpvar = json\_decode($json);
> 
> if (isset($json\_phpvar) && ($json\_phpvar-\>{‘request’} == “categories”)) {
> 
> ```
> $result_array = array();
> $query = db_query("SELECT * FROM categories");
> while ($row = db_fetch($query)) {
> $result_array'categories']] = $row;
> }
> echo json_encode($result_array, JSON_UNESCAPED_SLASHES);
> exit(0);
> 
> ```
> 
> }
> 
> ?\>

I sent from UE4 a “request”:“categories” in POST/JSON format. categories its a simple table with catid and catname values

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [December 4, 2015, 1:19pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/98 "2015-12-04T13:19:28Z")

</div>

:mad:  
and remember UTF8 for avoid strange NULL returns :mad:

> [@](#):
>
> while ($row = db\_fetch($query)) {  
> $result\_array’categories’]] = array\_map(“utf8\_encode”, $row);  
> }

---

<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 5, 2015, 4:34pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/99 "2015-12-05T16:34:15Z")

</div>

Hotfix release: [Release VaRest v1.1-r12 · ufna/VaRest · GitHub](https://github.com/ufna/VaRest/releases/tag/v1.1-r12)

---

<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:** [December 24, 2015, 12:12am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/101 "2015-12-24T00:12:22Z")

</div>

Hey, get plugin loving it. This is my first time posting on the forums SO NOT SURE HOW this is will work or if there will be two posts…

So everything is working how it should be HOWEVER (love that word, says there is trouble…) I am getting an error:  
“LogVaRest:Error: Json Value of type ‘None’ used as a ‘Number’.”

-There is one for every object returned, I have attempted to disconnect all pins etc, and I still get it.  
The data is: (along with type, yes its valid) the italicized parts are what was changed - they where floats/doubles before  
{  
“data”: {  
“id”: 1, \<-int  
“name”: “G0FK”, \<-varchar  
“type”: “G”, \<-char

- 

```
  "xPC": -33, &lt;-int
  "xAU": 48404, &lt;-int
  "yPC": 15, &lt;-int
  "yAU": 68783, &lt;-int*
  "zPC": 0 &lt;-int

```

}, {  
“id”: 2,  
“name”: “G1FS”,  
“type”: “G”,  
“xPC”: -51,  
“xAU”: -80386,  
“yPC”: -43,  
“yAU”: 67324,  
“zPC”: 0  
}  
]  
}

and an image -

 ![VaRestJSONGETs.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/a/8afe983648c506f4c649d66e2a8051235f45f740.png)

---

<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 26, 2015, 1:20pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/102 "2015-12-26T13:20:18Z")

</div>

Use GetStringField, GetNumberField, etc. instead of GetField (which returns Object type).

---

<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:** [December 26, 2015, 2:54pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/103 "2015-12-26T14:54:02Z")

</div>

Ah, okay that makes sense.  
Works, thanks!

---

<div class="post-metadata">

**Author:** ![TBrooks27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TBrooks27](https://forums.unrealengine.com/u/TBrooks27)\
**Post date:** [December 31, 2015, 7:04am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/104 "2015-12-31T07:04:28Z")

</div>

Hey guys, been trying to figure out how to install/compile this plugin for Mac, can anyone point me in the right direction?

---

<div class="post-metadata">

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

</div>

Hi,

This Plugin looks really awesome but could someome please show a “usage example for dummies”?

In other words: What exactly is required to store Player data online in a secure and reliable way?  
I’ve created a MySQL Database and downloaded Varest. What’s the next step to get ist working? Do you need some php bridge or another kind of form? How would this be done?  
I’d really need a simple step by step Guide that shows how to exchange Data between ue and the database and vice versa.

Thanks and best regards,  
Daniel

---

<div class="post-metadata">

**Author:** ![Control](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Control](https://forums.unrealengine.com/u/Control)\
**Post date:** [January 6, 2016, 3:31pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/106 "2016-01-06T15:31:02Z")

</div>

Hello please could you update it to newer version. I t looks amazing.

---

<div class="post-metadata">

**Author:** ![Control](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Control](https://forums.unrealengine.com/u/Control)\
**Post date:** [January 8, 2016, 11:22pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/107 "2016-01-08T23:22:35Z")

</div>

Hello, So how can I create a .json file with som arrays in it using this? And then send it to url or something. Please

---

<div class="post-metadata">

**Author:** ![Vindomire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vindomire](https://forums.unrealengine.com/u/Vindomire)\
**Post date:** [January 22, 2016, 2:46am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/108 "2016-01-22T02:46:58Z")

</div>

Having issues figuring out the process on the UE4 end AFTER url has been processed. I get a json response:

LogVaRest: Response (200): {“newsdate”:“01-20-2016”,“title”:“Test News!”,“desc”:"This is a Test of the ability to read and display news to the client!

This is a new Line!"}

So i want to do things in UE4 with this information, i tried a ton of wrong ways apparently… i use this BP and i imagine im missing steps or something to be able to pull the information out of the fields…

[http://puu.sh/mEPRA/e110dded35.png](http://puu.sh/mEPRA/e110dded35.png)

LogJson:Warning: Field Title was not found.  
LogJson:Error: Json Value of type ‘Null’ used as a ‘String’.

_ ~~Anyone able to help me with this?~~ _

Got it working finally had to use the latent version, i think it was trying to get the values before they were ready with the other version.

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

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