# Http requests are very slow

**URL:** <https://forums.unrealengine.com/t/http-requests-are-very-slow/367429>\
**Category:** C++\
**Tags:** httprequest, unreal-engine, http, CPP, question\
**Created:** [August 17, 2016, 5:19pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429 "2016-08-17T17:19:11Z")\
**Posts on this page:** 11\
**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:** [August 17, 2016, 5:19pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/1 "2016-08-17T17:19:11Z")

</div>

Hi,

A while i posted [VaRest HTTP GET is slow - C++ - Epic Developer Community Forums](https://answers.unrealengine.com/questions/320627/varest-http-get-slow.html)

The issue is the following. When making http requests using WinInet everything goes smooth, as soon as we switch to CURL the requests take ages to complete or time-out. Manual calls to our client via any other way result in fast queries (even using the curl command line on linux is fast)  
What could be the issue here?

The following makes my http requests very fast, opposed to the default, which is curl.

```
[Networking]
 UseLibCurl=False

```

This solution is not good enough for us, since we also want to release on linux and there Curl is the only option at the moment, so we really have to fix it. Any ideas what the cause could be? Serverside, UE4 side?

In addition to this i figured out something interesting. It seems you are still using version 7.41.0 of CURL, while the installation scripts in Engine\Source\ThirdParty\libcurl\BUILD.EPIC.sh seems to indicate it should be 7.48.0. I tried running the script myself, but it seems not to work properly anymore failing at includes etc.

Top content of BUILD.EPIC.sh:

```
ZLIB_VERSION=v1.2.8
SSL_VERSION=OpenSSL_1_0_1s
CURL_VERSION=curl-7_48_0
WS_VERSION=v1.7.4

```

Please let me know whats up with this latest find as well.

---

<div class="post-metadata">

**Author:** ![GamesByHyper\_Eric](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamesbyhyper_eric/32/709237_2.png) [@GamesByHyper\_Eric](https://forums.unrealengine.com/u/GamesByHyper_Eric)\
**Post date:** [August 18, 2016, 12:37am UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/2 "2016-08-18T00:37:10Z")

</div>

Upvote! Would Love to hear an answer.

---

<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 18, 2016, 12:56pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/3 "2016-08-18T12:56:27Z")

</div>

Hey and ERuts,

Thank you for the report. The issue has already been logged. You can follow its progress through the development staff here:

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

---

<div class="post-metadata">

**Author:** ![GamesByHyper\_Eric](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamesbyhyper_eric/32/709237_2.png) [@GamesByHyper\_Eric](https://forums.unrealengine.com/u/GamesByHyper_Eric)\
**Post date:** [August 18, 2016, 3:31pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/4 "2016-08-18T15:31:26Z")

</div>

Atm it is impossible to build for Linux now since Linux requires cURL. Do you have a workaround? We were just to launch on Steam…

---

<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 18, 2016, 3:54pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/5 "2016-08-18T15:54:18Z")

</div>

Hey ERuts,

This sounds like a different issue. There shouldn’t be anything blocking Linux from making builds.

Feel free to make another Answer Hub post under Packaging / Installation and we can look into the issue for you.

---

<div class="post-metadata">

**Author:** ![GamesByHyper\_Eric](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamesbyhyper_eric/32/709237_2.png) [@GamesByHyper\_Eric](https://forums.unrealengine.com/u/GamesByHyper_Eric)\
**Post date:** [August 18, 2016, 3:59pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/6 "2016-08-18T15:59:17Z")

</div>

Hi there,

I AM able to build for Linux, but i am required to turn of cURL. If cURL is turned of it does not work on Linux. (yes i am able to start the game, but connection is very slow.) So yes it is the same issue and it is not about packaging.

---

<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 18, 2016, 4:25pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/7 "2016-08-18T16:25:47Z")

</div>

I looked around and there is no current internal work around for this issue. Keep an eye on the issue report and feel free to upvote it, which will let the developers know that this issue is important to the community.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0abc0bce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0abc0bce](https://forums.unrealengine.com/u/anonymous_user_0abc0bce)\
**Post date:** [December 7, 2016, 12:26am UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/8 "2016-12-07T00:26:26Z")

</div>

We identified the problem with the Curl implementation in Unreal Engine source.

Whenever performing a GET request, the message payload will not get uploaded. The timeout happens after the server waits for the data to be received (since the Content-Length header is getting sent), and never sends back a response.

The problem is resolved by

1. using POST or PUT to upload data and _not_ a GET verb.

In particular, the VARest plugin can be patched to never sent the default JSON object when performing non-POST and non-PUT requests. I.e. conditionally executing `HttpRequest->SetContentAsString(OutputString);` only for the working verbs.

We have confirmed that this solution works on Windows.

Kind regards,

Technical Director HyperReuts Europe

---

<div class="post-metadata">

**Author:** ![Dig-Doug](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dig-Doug](https://forums.unrealengine.com/u/Dig-Doug)\
**Post date:** [August 3, 2020, 11:06pm UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/9 "2020-08-03T23:06:11Z")

</div>

I encountered a similar issue where http requests were really slow. The problem was that the thread tick rate was way too slow, limiting my download speed to ~1MB/s.

To fix, I updated my `Engine.ini`:

```
[HTTP]
HttpThreadActiveFrameTimeInSeconds = 0.0001
```

---

<div class="post-metadata">

**Author:** ![YeHaike](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YeHaike](https://forums.unrealengine.com/u/YeHaike)\
**Post date:** [September 10, 2023, 2:52am UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/10 "2023-09-10T02:52:18Z")

</div>

About HTTP, you can learn about this Plugin:

> **[UE-Http(UEHttp, Http Blueprint for UE) in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/ue-http-uehttp-http-blueprint-for-ue)**
>
> Only need to use the blueprints, you can perform various types of HTTP request operations. And it is super stable.

---

<div class="post-metadata">

**Author:** ![Sergey821](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergey821](https://forums.unrealengine.com/u/Sergey821)\
**Post date:** [April 8, 2024, 10:14am UTC](https://forums.unrealengine.com/t/http-requests-are-very-slow/367429/11 "2024-04-08T10:14:59Z")

</div>

> [@Dig-Doug](#):
>
> I encountered a similar issue where http requests were really slow. The problem was that the thread tick rate was way too slow, limiting my download speed to ~1MB/s.
> 
> To fix, I updated my `Engine.ini`:
> 
> ```auto
> [HTTP]
> HttpThreadActiveFrameTimeInSeconds = 0.0001
> 
> ```

Yes, the solution works great! You can even set it to a lower value.
