I had a look around the forum using search function with no luck (or maybe i'm too dumb to understand them :p)
Notice: this question is **NOT** related to php at all.
I am trying to make .bat file to download a file located on https.
The line I use is similar to
- Code: Select all
curl --insecure -u 'mylogin:mypass' https://example.com/myfile.tar.gz > myfile.tar.gz
I use to work with this on linux Ubuntu. It works fine in this environment.
Since I use xampp for windows on my laptop, and since
curl.exe
libeay32.dll
ssleay32.dll
are all bundled in c:\xampp\apache\bin\ I thought it should work ok. (got that idea from curl web page => http://curl.haxx.se/docs/faq.html#Where ... y_of_LIBEA)
However it does not. curl throws a nasty
- Code: Select all
C:\xampp\apache\bin>curl --insecure -u 'mylogin:mypass' https://example.com/myfile.tar.gz > myfile.tar.gz
curl: (1) Protocol https not supported or disabled in libcurl
and indeed, it does seem that https isn't supported:
- Code: Select all
C:\xampp\apache\bin>curl -V
curl 7.18.2 (i586-pc-mingw32msvc) libcurl/7.18.2 zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file
Features: Largefile libz
What's wrong? Since I load curl.exe while being in the very directory containing both libeay32.dll and ssleay32.dll, if curl.exe would require them, they would be loaded right? (and btw, I tried copy-paste in c:\windows\system32 and rebooting windows => doesn't work either
Anyone having an idea?