first question ever on here, so bear with me :) I've been on the web for the past 3 days trying to find a way to get the following result on my windows machine.
example of 'cURL -V' output I need
I've found a lot of stuff for macOS and unix, but only bits and pieces for Windows. I'm running xampp, and ultimately I'm trying to get it to send http/2 requests through cURL/PHP. What I've gathered so far is that I need cURL to be compiled with some libraries, like openssl (at least 1.0.2), libcurl with http/2 enabled, and nghttp2. I feel like I'm very close but I'm just missing some steps.
What I've done so far:
Any suggestions or pointers will be greatly appreciated! Thank you guys :)
Ok, I was finally able to build Curl on Windows with http/2 support. This is what worked for me, step by step:
nmake
and required Windows SDK libraries and header filtes)curl-7.56.1.tar.gz
, aka for me the very first one on https://curl.haxx.se/download.html)c:/curl
, so I ended up with c:/curl/curl-7.56.1
c:/curl/curl-7.56.1/winbuild
and proceeded to http://windows.php.net/downloads/php-sdk/deps/ to download the 4 libraries that I needed. I just grabbed the VC15/x86 versions.c:/curl/curl-7.56.1
c:/curl/curl-7.56.1/deps
: bin
, lib
, and include
cd c:/curl/curl-7.56.1/winbuild
nmake -f Makefile.vc mode=dll WITH_DEVEL=c:/curl/curl-7.56.1/deps WITH_SSL=dll WITH_NGHTTP2=dll WITH_ZLIB=static WITH_SSH2=dll
c:\curl\curl-7.56.1\builds
c:\curl\curl-7.56.1\deps\bin
to the same directory where the newly built curl.exe isbin
folder containing any .dll
's, I understand why I had to mark zlib as static with the WITH_ZLIB=static
flag. What I don't get is why I had to manually move the openssl .dll
's in the new directory. Any thoughts?PS: thank you Daniel for pointing me in the right direction. I didn't even notice the /winbuild
directory.
PPS: As you can probably tell, I had no idea what I've been doing 90% of the time. Probably why it took me 5 days to figure it out ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With