请问如何配置curl才能支持获取https网站内容或者向https的网站提交数据

解决方案 »

  1.   

    Note: Note to Win32 Users
    In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH. You don't need libcurl.dll from the cURL site. Linux下编译php的时候,把openssl支持一块编译进去
      --with-openssl[=DIR]    Include OpenSSL support (requires OpenSSL >= 0.9.6)
      --with-openssl-dir[=DIR]  FTP: openssl install prefix
      --with-imap-ssl[=DIR]     IMAP: Include SSL support. DIR is the OpenSSL install prefix
      --with-openssl-dir[=DIR]  SNMP: openssl install prefix我一般自己编译,如果你的Linux发行版带有php5-openssl包,安装好就行了
      

  2.   

    不知道window下面如何做,谢谢。
      

  3.   

    把openssl的那两个dll文件,放到system32目录,或者在PATH环境变量中能找到
      

  4.   

    呵呵,能详细说一下在path变量当中哪个地方吗?还没找到。
      

  5.   

    看一下 php.ini 里面的extension 参数。