can you get it to work without SSL?
Dan Rossi wrote:
Here is my code i am using, ive tried and tried, im still getting a no
data sent error in the browser.
<?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://mydomain/Default.asmx");
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_SSLCERT, '/path/to/certs/cert.pem');
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, 'thepass');
curl_setopt($ch, CURLOPT_SSLKEYTYPE, 'PEM');
curl_setopt($ch, CURLOPT_SSLKEY, '/path/to/certs/key.pem');
curl_setopt($ch, CURLOPT_USERPWD, 'user:pass');
ob_start();
curl_exec($ch);
ob_end_flush();
if(curl_error($ch)) {
printf("error: [%s] %s", curl_errno($ch), curl_error($ch));
}
curl_close($ch);
?>
On 03/11/2005, at 7:31 PM, Dan Rossi wrote:
Just a standard php 4.3.11 and apache 1.3 ?? It works via php cli
wierdly enough but not the apache module ?
On 03/11/2005, at 7:17 PM, Jochem Maas wrote:
Dan Rossi wrote:
Hi there, I am trying to test out the new installed curl extension
to connect to a site via ssl and auth basic. However everytime i try
to connect with the browser , in ie it says cannot find server and
in mac safari is says could not load any data etc. If i run the same
script via php cli it works fine and is accepting the ssl
certificate we setup on the IIs server we are connecting to. What
could be cauasing this, there is no way to get php debug errors
because it doesnt let the page load. Its around the curl_exec call.
I also found that its causing an issue with apache in the logs
* About to connect() to ourserver port 443
* Trying ip... * connected
* Connected to ourserver (ip) port 443
* successfully set certificate verify locations:
* CAfile: /usr/local/share/curl/curl-ca-bundle.crt
CApath: none
[Thu Nov 3 02:46:38 2005] [notice] child pid 49681 exit signal
Segmentation fault (11)
any ideas ?
it helps when you tell us what versions of softwar eyou have.
are you running apache2? is it running using a threaded worker module?
is the curl extension thread safe?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php