Support Services

How do I use the libcurl 7.14.0 module included with the PHP v5.0.5 (IIS Configuration)?

Complete the following steps:

  1. Download the "PHP 5.0.5 zip package" and collection of PECL modules for PHP 5.0.5 from
  2. Extract the contents of into a folder. From this point forward, this will be referred to as the installation directory (e.g., C:\Program Files\PHP)
  3. Extract the contents of the into the "ext" folder of the installation directory. 
  4. Configure the IIS Application Mappings to include php and .php3 extenstions call C:\Program Files\PHP\php-win.exe.
  5. From the installation directory, copy php.ini-recommended to php.ini and modify it as follows:
    • extension_dir=./ext
    • cgi.forc_redirect=0
    • extension=php_curl.dll
  6. Install or update a CA certificate bundle as detailed on the official cURL website:
  7. Include the following in the cURL code of php_curl.php between ob_start() {}:
    • curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); // verifying the peer's certificate is completely optional.

    • curl_setopt($ch, CURLOPT_CAINFO, 'c:\php\ca-bundle.crt'); // specificy path to ca-bundle.crt in 3rd parameter.

NOTE: Messages delivered securely to Forte use SSL v3 and/or TLS v1.0 protocols.

Below is an example response:

pg_response_description=INVALID PASSWD 
pg_trace_number=76D30BF7-C574-4F9A-AA65-7DF9E58FA0B0 pg_merchant_id=2000 
* About to connect() to port 443 * Trying * connected * Connected to ( port 443 * successfully set certificate verify locations: * CAfile: c:\php\ca-bundle.crt CApath: none * SSL connection using RC4-MD5 * Server certificate: * subject: /C=US/ST=California/L=Palm Springs/O=ACH Direct, Inc./OU=Terms of use at of use at (c)05/ * start date: 2007-01-09 00:00:00 GMT * expire date: 2008-02-06 23:59:59 GMT * common name: (matched) * issuer: /O=VeriSign Trust Network/OU=VeriSign, Inc./OU=VeriSign International Server CA - Class 3/ Ref. LIABILITY LTD.(c)97 VeriSign * SSL certificate verify ok. > POST /cgi-bin/ HTTP/1.1 Host: Accept: */* Content-Length: 307 Content-Type: application/x-www-form-urlencoded pg_merchant_id=2000&amp;pg_password=password&amp;pg_transa ction_type=13&amp;pg_total_amount=110.00&amp;ecom_billto_p ostal_name_first=John&amp;ecom_billto_postal_name_last =Smith&amp;ecom_payment_card_type=VISA&amp;ecom_payment_ca rd_number=4111111111111111&amp;ecom_payment_card_expda te_month=12&amp;ecom_payment_card_expdate_year=2020&amp;en dofdata< HTTP/1.1 200 OK < Date: Wed, 26 Sep 2007 21:29:00 GMT < Server: Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 < Transfer-Encoding: chunked < Content-Type: text/html; charset=UTF-8 < Set-Cookie: BIGipServerCGIPost=687999498.47873.0000; path=/ * Connection #0 to host left intact * Closing connection #0

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.