# VaRest HTTP GET is slow

**URL:** <https://forums.unrealengine.com/t/varest-http-get-is-slow/335916>\
**Category:** C++\
**Tags:** httprequest, unreal-engine, http, CPP, question\
**Created:** [October 20, 2015, 4:18pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916 "2015-10-20T16:18:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [October 20, 2015, 4:18pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/1 "2015-10-20T16:18:31Z")

</div>

Hello guys,

I am working with VaRest 1.1-rc8 plugin and my get requests keep timing out or are very slow (think 30 seconds to 2 minutes). I can’t figure it out… Via browser all calls are extremely fast (even after clearing cache). I am testing it on my own website as well, which is horribly slow as well. I also tried monotoring via wireshark, but it seems request is not found there… First i thought it was a server issue, but it is easily reproducible on public sources as well. See below.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/f/2f0984456f8dd47c5beb0a68b72c3d6cf62ef2aa.jpeg) ](http://tinypic.com/images/goodbye.jpg)

Logfiles of code with full logging enabled for http calls:  
[log.txt][1]

A slow site:  
[http://www.filltext.com/?rows=10&fname={firstName}&lname={lastName}&pretty=true.json](http://www.filltext.com/?rows=10&fname=%7BfirstName%7D&lname=%7BlastName%7D&pretty=true.json)

Test same site via this tool:

> **[RequestMaker.com is available at DomainMarket.com](https://www.domainmarket.com/buynow/requestmaker.com)**
>
> Domain for Sale. RequestMaker.com. Request Price. What Are the
> Advantages of a Super Premium .Com Domain? Increased Traffic. Search Engine Ranking. Brand Recognition.
> Immediate Presence. Higher Profits. Great Investment. #1 in Premium Domains....

Somehow this large .json is fast…:  
[https://edg.epa.gov/data.json](https://edg.epa.gov/data.json)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [October 20, 2015, 5:22pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/2 "2015-10-20T17:22:02Z")

</div>

Hi ,

We don’t offer support for externally created plugins. Please communicate with plugin’s creator for this issue. I believe appropriate place would be here:

> **[\[Plugin\] Http/s REST, blueprintable JSON and Parse REST API manager at once...](https://forums.unrealengine.com/showthread.php?13509-Plugin-Http-s-REST-blueprintable-JSON-and-Parse-REST-API-manager-at-once-%28VaRest%29)**
>
> Hi there 🙂 I’ve just released the first public version of plugin that makes REST server communications pretty easier. VaRest is the plugin for Unreal Engine 4 that makes REST server communications simple to use with full Json query support. Key...

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [October 20, 2015, 5:26pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/3 "2015-10-20T17:26:31Z")

</div>

It seems to be related to a LibCurl call, if i add following to engine.ini

```
[Networking]
UseLibCurl=False

```

It now processes everything in a matter of milliseconds… It either seems to be related to way UE4 calls LibCurl or libcurl itself? Care to investigate?

See my comment(s) below for more information

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [October 22, 2015, 5:19pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/4 "2015-10-22T17:19:40Z")

</div>

I think its still good to test performance of curl vs wininet, because this performance difference is huge in example above… By just making a HTTP call via UE you should be able to reproduce it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [August 17, 2016, 5:12pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/5 "2016-08-17T17:12:32Z")

</div>

For windows this solved our issues, but now are also also testing on Linux and LibCurl is only option there, hence above solution is not good enough. I compared http requests between libcurl and wininet, but couldn’t find anything interesting that could explain extremly slow Curl requests. Any ideas? Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [August 17, 2016, 5:53pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/6 "2016-08-17T17:53:06Z")

</div>

Hey ,

Thanks for report. We currently have a issue regarding performance of HTTP requests. You can follow it here:

[https://issues.unrealengine.com/issue/UE-33732](https://issues.unrealengine.com/issue/UE-33732)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [August 17, 2016, 7:35pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/7 "2016-08-17T19:35:50Z")

</div>

I am very surprised that this issue has not been solved yet, its really unworkable at moment. Also i am curious why so few people are complaining about it… there must be a workaround for this…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c6d86391](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c6d86391](https://forums.unrealengine.com/u/anonymous_user_8c6d86391)\
**Post date:** [April 30, 2019, 1:41pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/8 "2019-04-30T13:41:01Z")

</div>

I am also running into this issue. REST calls are extremely slow. I am running on Windows and tried your workaround, but I couldn’t get it to work. I just want to confirm: I edited file in my project folder “Config/DefaultEngine.ini” and added lines in your answer to disable LibCurl, but I still get slow calls when I click “Play” in engine editor. I am using Unreal Engine 4.22. Maybe this workaround doesn’t work any more? Or am I editing wrong file?

---

<div class="post-metadata">

**Author:** ![artvoz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artvoz](https://forums.unrealengine.com/u/artvoz)\
**Post date:** [September 30, 2022, 12:16pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/9 "2022-09-30T12:16:42Z")

</div>

This issue is still there in UE 5.0.3  
I’ve tried to add lines

```auto
[Networking]
UseLibCurl=False

```

and it doesn’t prevent FHttpModule to create FCurlHttpRequest in C++. I’m curious how this huge issue still haven’t been fixed…

---

<div class="post-metadata">

**Author:** ![JakeTee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakeTee](https://forums.unrealengine.com/u/JakeTee)\
**Post date:** [April 6, 2023, 1:15pm UTC](https://forums.unrealengine.com/t/varest-http-get-is-slow/335916/11 "2023-04-06T13:15:23Z")

</div>

Seems like UseLibCurl is removed from being a config I think (after checking source and can’t find where this var is used)
