cURL 在 MS-Windows 環境的使用

如果不需要 ssl 加密直接下載 cURL 沒有 ssl 版本執行就可,如果需要 ssl 加密,除下載 cURL 有 ssl 版本外,還需要下載 openssl 的相關 dll。

cURL 下載網頁
不含 ssl 加密功能 http://curl.haxx.se/latest.cgi?curl=win32-nossl-sspi 下載 curl-7.18.2-win32-nossl-sspi.zip
含有 ssl 加密功能 http://curl.haxx.se/latest.cgi?curl=win32-ssl-sspi 下載 curl-7.18.2-win32-ssl-sspi.zip
openSSL 下載網頁
http://curl.haxx.se/download.html#openssl 下載 openssl_mingw32-0.9.8g.7z

cURL 不含 ssl 加密功能

下載 curl-7.18.2-win32-nossl-sspi.zip 之後解開直接將 curl.exe 拿出來用就可以。

cURL 含有 ssl 加密功能

下載 curl-7.18.2-win32-ssl-sspi.zip 之後解開將 curl.exe 拿出來與 下載 openssl_mingw32-0.9.8g.7z 解開後的 bin 目錄內 libeay32.dll libssl32.dll openssl.exe 放在相同目錄執行就可以,否則就會出現以下的錯誤訊息:
The procedure entry point CRYPTO_cleanup_all_ex_data could not be located in the dynamic link library libeay32.dll

參考網址

 
回到頁頂
tech/curl_ssl_win.txt · 上一次變更: 2008/08/15 06:01 來自 jonathan
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0