# \[HTTP\] Why is HTTP GET so slow, UE4 is performing 15x slower than Python at downloading a file

**URL:** <https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 22, 2016, 5:51am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768 "2016-07-22T05:51:47Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [July 22, 2016, 5:51am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/1 "2016-07-22T05:51:47Z")

</div>

Dear Epic and Community,

Does anyone know a way to speed up the use of HTTP GET requests on windows machine?

I can download 1.67 GB in about 1.5 min using chrome or my ftp server, but using HTTP GET request from within UE4 takes at least 30 minutes.

**Why is it literally about 20x slower?**

For comparison I downloaded the 1.67 gb file in 2 min and 20 seconds using **python** , which is about the same as Chrome and my FTP server

I really wish UE4 could download things faster for me than python can 🙂

As more and more UE4 projects are maturing and needing fast download speeds for DLC and paks and all sorts of things, I really think fast download speeds should be a high priority 🙂

My research so far:

**I feel like libcurl is capped somehow in a way it shouldnt be.**

I tried turning lib curl off but then the download does not occur at all. (I tried both config and commandline methods)

I tried accessing the public static FCurlHttpManager ptr and including the private .h file, but the compiler was not finding it even with HTTP module included

```
static CURLSH* GShareHandle;

```

Even if I did succeed in that I wouldnt really know what to do to make UE4 download things faster.

Is there anyway to make HTTP GETs go faster on a windows machine?

Relevant code can be found in AsyncTaskDownloadImage.cpp, this is what I am doing, but for a 1.67 gb file.

```
TSharedRef<IHttpRequest> HttpRequest = FHttpModule::Get().CreateRequest();

HttpRequest->OnProcessRequestComplete().BindUObject(this, &UAsyncTaskDownloadImage::HandleImageRequest);
HttpRequest->SetURL(URL);
HttpRequest->SetVerb(TEXT("GET"));
HttpRequest->ProcessRequest();

```

I wrote my own download progress bar using

```
//IHttp
/**
 * Delegate called to update the request/response progress. See FHttpRequestProgressDelegate
 */
virtual FHttpRequestProgressDelegate& OnRequestProgress() = 0;

```

So I know the download is working, it just takes a really really long time compared to Chrome or my FTP server.

Thank you for any insights in this matter!

#A Neutral Test ~ 1GB Speed Test

If you want to test you can test with a 1 GB download here:

ftp://speedtest:speedtest@ftp.otenet.gr/test1Gb.db

I endured it, in UE4 it took:

**17 minutes** and 43 seconds

Exact same url, using python:

**1 minute** and 19 seconds

#My Conclusion

Clearly libcurl is throttled somewhere, and cannot use the full power of my internet connection, in a way that Chrome, my ftp server, and python are not limited.

Can you please address this so I can use UE4 instead of python to download DLC?

Thank youuuu!

❤

PS: Here is the python script I used:

```
import urllib2

downloadedfile = urllib2.urlopen("http://YourVeryLargeFile.exe")
with open('pO.exe', 'wb') as output:
    while True:
        data = downloadedfile.read(100000000)
        if data:
            output.write(data)
            print "read 100 mb"
        else:
            print "download complete and file written!"
            break

```

---

<div class="post-metadata">

**Author:** ![NoobsDeSroobs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoobsDeSroobs](https://forums.unrealengine.com/u/NoobsDeSroobs)\
**Post date:** [July 22, 2016, 7:39am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/2 "2016-07-22T07:39:09Z")

</div>

Sorry for being pedantic, but is it 15 or 20 times slower? The title and the body are conflicting.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [July 22, 2016, 7:45am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/3 "2016-07-22T07:45:54Z")

</div>

UE4 http get is 15 x slower than python, and 20x slower than Chrome/my ftp server.

Also please see my neutral 1gb speed test which I just posted:

**UE4** 17 minutes 43 seconds

**python** 1 minute 19 seconds

I performed these test 1 right after the other, and not concurrently, same url 🙂

Chrome, my ftp server, and python are all very similar, and UE4 http get using libcurl is at least 15x slower at a minimum.

---

<div class="post-metadata">

**Author:** ![Moss](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/moss/32/704032_2.png) [@Moss](https://forums.unrealengine.com/u/Moss)\
**Post date:** [July 23, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/4 "2016-07-23T17:08:44Z")

</div>

Might be the buffering, in your python script you just read `100000000` bytes while Epics code is buffering to throttle the download.

---

<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:** [July 25, 2016, 6:47pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/5 "2016-07-25T18:47:55Z")

</div>

Hey ,

Thanks for the feedback. I was able to reproduce the issue and it is submitted as, [UE-33732](https://issues.unrealengine.com/issue/UE-33732).

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [July 25, 2016, 10:00pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/6 "2016-07-25T22:00:51Z")

</div>

Thank you for the update!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [July 25, 2016, 10:01pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/7 "2016-07-25T22:01:03Z")

</div>

Hi Moss!

Very nice to hear from you!

#❤

---

<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 30, 2016, 9:01pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/8 "2016-08-30T21:01:53Z")

</div>

An important note for this issue. On windows we can switch to WinInet using the following code in defaultengine.ini:

```
[Networking]
 UseLibCurl=False

```

The problem is that Linux only has LibCurl and its way too slow. WinInet did work for my purposes though and is very fast. Another note: i tested LibCurl using the command line of LibCurl and all my calls were very fast as well, so i suspect it has something to do on how UE4 is using libcurl.

I figured out i actually had one special call in which i had a get request with an empty json as input (using varest plugin), apparently that caused the long http calls. It is somehow related to libcurl…

---

<div class="post-metadata">

**Author:** ![burak.io](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@burak.io](https://forums.unrealengine.com/u/burak.io)\
**Post date:** [September 14, 2016, 11:11am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/9 "2016-09-14T11:11:00Z")

</div>

Is there any temporary solution for Android and IOS to get normal speed before this gets fixed?

---

<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:** [September 14, 2016, 1:24pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/10 "2016-09-14T13:24:32Z")

</div>

There hasn’t been any update on a current work around or fix for this issue but another user has suggested something that may or may not work. You can see that here:

[https://answers.unrealengine.com/questions/320627/varest-http-get-slow.html](https://answers.unrealengine.com/questions/320627/varest-http-get-slow.html)

---

<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:** [September 14, 2016, 5:21pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/11 "2016-09-14T17:21:21Z")

</div>

For Android and IOS there is currently no workaround. The suggested workaround only works on windows, since there is support for WinInet there, which actually works fast. I am still suprised this is currently backed logged, how can you possibly be using HTTP with this speed? I consider it completely broken at the moment.

---

<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:** [September 14, 2016, 5:27pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/12 "2016-09-14T17:27:12Z")

</div>

The only note on it is that it isn’t affecting anything bad enough to be critical. There is a plan to look at it whenever they can get to it, though.

---

<div class="post-metadata">

**Author:** ![nullbus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullbus](https://forums.unrealengine.com/u/nullbus)\
**Post date:** [November 20, 2017, 9:33am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/13 "2017-11-20T09:33:31Z")

</div>

This is already marked as resolved question, but I want to share I discovered. I found that HTTP request’s fetch rate is controlled by `FHttpModule`, especially `HttpThreadActiveFrameTimeInSeconds` variable is the key. Default value of it is around 0.005(200Hz). That means, tiny fetch operations were called just 200 times per second. By decreasing the value to the proper value I could get reasonable download speed.

You can control this value from the Engine configuration file like this:

```
[HTTP]
HttpThreadActiveFrameTimeInSeconds=0.00001
```

---

<div class="post-metadata">

**Author:** ![Lucas09090909091](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lucas09090909091](https://forums.unrealengine.com/u/Lucas09090909091)\
**Post date:** [February 11, 2019, 2:55pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/14 "2019-02-11T14:55:14Z")

</div>

Along the lines of nullbus’s answer, you can increase the buffer size to the libcurl maximum allowed value. For a large download over a very strong internet connection, this dropped my response times from ~8.3 seconds to ~1.3 seconds.

```
[HTTP.Curl]
BufferSize=524288
```

---

<div class="post-metadata">

**Author:** ![stlnkm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stlnkm](https://forums.unrealengine.com/u/stlnkm)\
**Post date:** [March 24, 2022, 2:28am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/15 "2022-03-24T02:28:35Z")

</div>

Thanks, this help for me.

---

<div class="post-metadata">

**Author:** ![JonathanCai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanCai](https://forums.unrealengine.com/u/JonathanCai)\
**Post date:** [September 15, 2022, 12:24pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/16 "2022-09-15T12:24:05Z")

</div>

Thanks, this works for us too.

---

<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:54am UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/17 "2023-09-10T02:54:56Z")

</div>

About HTTP, maybe get some inspiration from 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:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [February 20, 2025, 4:01pm UTC](https://forums.unrealengine.com/t/http-why-is-http-get-so-slow-ue4-is-performing-15x-slower-than-python-at-downloading-a-file/364768/18 "2025-02-20T16:01:05Z")

</div>

8 years later I was going nuts trying to solve the same thing!!!

You’re a genius man!!! THANKS!!!
