I need to send an HTTP request to the server (www.google.com) and get a response. All this I implement in C ++, and I need a library of minimum size. I tried connecting curl, cpr in Visual Studio, but not successfully. P.S. I'm new to C ++. Thank you everyone :D
Asked
Active
Viewed 2,609 times
0
-
1Sorry, software recommendations are off-topic for stackoverflow.com. You are on the wrong site. You should post this to https://softwarerecs.stackexchange.com/ – Sam Varshavchik May 14 '20 at 12:01
-
What problem did you have with curl, please post a [mre] – Alan Birtles May 14 '20 at 12:05
-
Please describe your problem and post a minimal code that others can copy and paste to reproduce your problem – Thomas Sablik May 14 '20 at 12:07
-
Hey Alan Birtles! I can't install curl in Visual Stuido 2019. I don't know how to do it. – tilekvj May 14 '20 at 12:09
-
You don't install curl "in visual studio". You install the library and tell the visual studio msvc linker tool where to find it. – Bayleef May 14 '20 at 14:55
-
Bailey Kocin! How can i install curl in VS? – tilekvj May 14 '20 at 14:57
-
so, what i should include? Please, give me you're telegram. Help me plesase. I am beginner and i don't know nothing about lib's and how to includes them. – tilekvj May 14 '20 at 15:01
1 Answers
0
How can i install curl in VS
I suggest you could try to use vcpkg to install curl:
1,Get vcpkg from: https://github.com/microsoft/vcpkg/archive/2019.08.zip and extract it to a folder of your choice (e.g. C:\vcpkg\
)
2,Open Developer Command Prompt for VS 2017 (see Windows Start menu or %PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools\
) and cd
to C:\vcpkg\
3,Run bootstrap-vcpkg.bat
4,Run vcpkg.exe integrate install
5,Run vcpkg.exe install curl
6,And then you could try to use.
For more details, I suggest you could refer to the link: https://stackoverflow.com/a/54680718/11872808

Jeaninez - MSFT
- 3,210
- 1
- 5
- 20