# Programming with Third Party (libcurl)

**URL:** <https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198>\
**Category:** C++\
**Tags:** third-party-librarie, unreal-engine, CPP, question\
**Created:** [May 31, 2016, 10:28pm UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198 "2016-05-31T22:28:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_51c3e6d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_51c3e6d1](https://forums.unrealengine.com/u/anonymous_user_51c3e6d1)\
**Post date:** [May 31, 2016, 10:28pm UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/1 "2016-05-31T22:28:45Z")

</div>

I see in Unreal Engine’s Source directory there are a number of third party tools. How do we use them in our projects? For example, I tried to run sample code straight from libcurl’s website, but it won’t work. Pressing compile into the editor says libcurl can’t be found. I am new to C++, anyone willing to help? Thank you!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [June 1, 2016, 1:51am UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/2 "2016-06-01T01:51:24Z")

</div>

First and for most you should use UE4 APIs as much as you can, there 99% compatible with UE4 types making things a lot easier, all you see in ThirdParty as libraries used in UE4 and power of it is accessable thru UE4 APIs. UE4 provide HTTP APIs it is where libcurl is used by UE4, here is example how to use it:

> **[Reading a file online](https://forums.unrealengine.com/questions/325380/reading-a-file-online.html)**
>
> I need to read a sequence of bytes stored in a basic txt file which can be found at a specific url. With a local file path I can use SaveFileToArray() function to store the bytes in a uint8 array, how can I do the same with the given file url?

But if you really want to use libcurl, looking on HTTP module you just need to add this depency in to build script (\*.cs file)

```
AddThirdPartyPrivateStaticDependencies(Target, "libcurl");

```

And do those includes in cpp:

```
#include "Curl/CurlHttp.h"
#include "Curl/CurlHttpManager.h"

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_51c3e6d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_51c3e6d1](https://forums.unrealengine.com/u/anonymous_user_51c3e6d1)\
**Post date:** [June 1, 2016, 3:49pm UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/3 "2016-06-01T15:49:20Z")

</div>

Thanks for taking the time answer. I am getting this error: fatal error C1083: Cannot open include file: ‘Curl/CurlHttp.h’: No such file or directory. I placed this in the correct place, right?

 ![92889-ue4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/b/45b37ac39c33029cced837395ef00825ed50b234.png)

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [August 23, 2019, 7:01am UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/4 "2019-08-23T07:01:50Z")

</div>

AddEngineThirdPartyPrivateStaticDependencies(Target, “libcurl”);  
AddEngineThirdPartyPrivateStaticDependencies(Target, “OpenSSL”);

> **[\[Help\]How to connect to a smtp server?](https://forums.unrealengine.com/questions/600435/helphow-to-connect-to-a-smtp-server.html)**
>
> I use the FSocket link to the specified SMTP server, but I found that when the server sends an ACK request when the FSocket did not respond. Is this an FSocket defect? Or is it because my setup has a problem?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c7c59a90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c7c59a90](https://forums.unrealengine.com/u/anonymous_user_c7c59a90)\
**Post date:** [October 14, 2019, 8:31am UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/5 "2019-10-14T08:31:49Z")

</div>

it doesn’t helped to me. I was trying to run basic curl c++ script uploading audio to server and receiving server response as a data. And the same script i am trying to run on ue4. But there is no library as #include , i tried to add AddEngineThirdPartyPrivateStaticDependencies(Target, “libcurl”);  
AddEngineThirdPartyPrivateStaticDependencies(Target, “OpenSSL”); to MyProject.Build.cs but it does brings a list of errors

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c7c59a90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c7c59a90](https://forums.unrealengine.com/u/anonymous_user_c7c59a90)\
**Post date:** [October 14, 2019, 9:07am UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/6 "2019-10-14T09:07:26Z")

</div>

![289985-screen-shot-2019-10-14-at-30433-pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/2/3429cdac0211b5e4d5629e508ee3d50d708c2822.png)

Long list of errors which i am receiving by adding AddEngineThirdPartyPrivateStaticDependencies to build.cs empty thirdperson c++ project

 ![289986-screen-shot-2019-10-14-at-30621-pm.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/6/c6624261d109e2ff6247e7bdae85cc3ef109aa0d.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c7c59a90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c7c59a90](https://forums.unrealengine.com/u/anonymous_user_c7c59a90)\
**Post date:** [October 14, 2019, 9:09am UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/7 "2019-10-14T09:09:25Z")

</div>

my ue4 version is 4.23 on mac OS, if it is matters. I want to run a sample c++ code on ue4 project, http solutions which does have ue4 is not enough for now

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [December 18, 2022, 1:20pm UTC](https://forums.unrealengine.com/t/programming-with-third-party-libcurl/359198/8 "2022-12-18T13:20:04Z")

</div>

Also, need to build project with Engine sources. I’ve spent a couple hours to remember this yesterday, when upgrading project
