# Varest Json Request

**URL:** <https://forums.unrealengine.com/t/varest-json-request/458819>\
**Category:** Blueprint\
**Tags:** url, unreal-engine, json, question\
**Created:** [November 25, 2019, 5:17pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819 "2019-11-25T17:17:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![huseyin12343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@huseyin12343](https://forums.unrealengine.com/u/huseyin12343)\
**Post date:** [November 25, 2019, 5:17pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819/1 "2019-11-25T17:17:39Z")

</div>

Im trying to send a json request with a header and parameters but cant see to do so. I can either send the header without parameters or, parameters without the header. But i need to be able to send both in the same request.

This first image successfully send the header and the second image successfully sends the parameters

 ![292984-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/d/b0d3a97bf0f92aac74c8c1dc2c6c7854a8d23092.png)

![292985-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/5/17581a5d7a61411ce64512d4929b71eb22a08f3f.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:** [November 29, 2019, 12:42pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819/2 "2019-11-29T12:42:15Z")

</div>

Please always use ApplyUrl or ProcessURL instead. CallURL is broken and will be removed very soon (replaced with new one function).

I’ll check params sending in urlencoded form next week.

---

<div class="post-metadata">

**Author:** ![huseyin12343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@huseyin12343](https://forums.unrealengine.com/u/huseyin12343)\
**Post date:** [December 3, 2019, 9:38pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819/3 "2019-12-03T21:38:27Z")

</div>

I am still getting message body missing when using process URL, If you look at the top image i think ive done everything correct yet still getting error from API.

---

<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, 2019, 6:12am UTC](https://forums.unrealengine.com/t/varest-json-request/458819/4 "2019-12-05T06:12:11Z")

</div>

I’ve just checked it with [https://httpbin.org/get](https://httpbin.org/get) and all works as it should:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/2/c22efc34ce209445925b049b3f8e853c12fb0e47.png)

```
LogBlueprintUserMessages: [NewBlueprint_2] {"args":{"oneMoreThing":"567","testParam":"value1"},"headers":{"Accept":"*/*","Accept-Encoding":"deflate, gzip","Content-Type":"application/x-www-form-urlencoded","Customhone":"Test1","Customhtwo":"123","Host":"httpbin.org","User-Agent":"VaRestDemo/++UE4+Release-4.23-CL-9631420 Windows/10.0.18362.1.256.64bit"},"orig
in":"185.6.245.138, 185.6.245.138","url":"https://httpbin.org/get?testParam=value1&oneMoreThing=567"}
```

---

<div class="post-metadata">

**Author:** ![huseyin12343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@huseyin12343](https://forums.unrealengine.com/u/huseyin12343)\
**Post date:** [December 5, 2019, 6:31pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819/5 "2019-12-05T18:31:11Z")

</div>

![293474-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/6/6c6ea4dda9801888c9a8fabba5d3ab4b46287870.png)

I just tried it still not working 😕 Not sure if it makes a difference but i am posting not getting.

---

<div class="post-metadata">

**Author:** ![devmetaforce](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devmetaforce/32/495583_2.png) [@devmetaforce](https://forums.unrealengine.com/u/devmetaforce)\
**Post date:** [April 22, 2022, 10:54am UTC](https://forums.unrealengine.com/t/varest-json-request/458819/7 "2022-04-22T10:54:30Z")

</div>

did you solve your problem?

---

<div class="post-metadata">

**Author:** ![Tadidas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tadidas](https://forums.unrealengine.com/u/Tadidas)\
**Post date:** [December 17, 2022, 10:21pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819/8 "2022-12-17T22:21:03Z")

</div>

For the authorization header, put Bearer in front of the {token code}, it will work!  
 ![image_2022-12-18_002327868](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/1/cc11a4fe71c38ca465ac2b7b5c3fc5d6c91ac04a.png)

---

<div class="post-metadata">

**Author:** ![timi707](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/timi707/32/1194713_2.png) [@timi707](https://forums.unrealengine.com/u/timi707)\
**Post date:** [September 7, 2023, 3:21am UTC](https://forums.unrealengine.com/t/varest-json-request/458819/9 "2023-09-07T03:21:09Z")

</div>

theoden horse master  
on the ‘construct json request’ node you must set content type to ‘json’ for the body to work, worked for me

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1223962_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [July 16, 2024, 4:20pm UTC](https://forums.unrealengine.com/t/varest-json-request/458819/10 "2024-07-16T16:20:16Z")

</div>

Hi @ufna is there an example with a bearer token to access and list a Cloudflare stream? [Cloudflare API Documentation](https://developers.cloudflare.com/api/operations/stream-videos-list-videos)
