0

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

tilekvj
  • 13
  • 1
  • 2
  • 6

1 Answers1

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