curl-and-php
Re: curl (with php to HTTPS)
Date: Wed, 11 Apr 2001 18:44:16 +0800
Hi..
This is part of my php info (supporting curl / openssl) and it's still giving me the same result...
Now I would think whether it's the code problem? Is there anything incorrect?
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.6 24 Sep 2000
curl
CURL support enabled
CURL Information libcurl 7.6.1 (ipv6 enabled)
Thanks,
Keng.
----- Original Message -----
From: Sebastian Lemke
Subject: AW: curl (with php to HTTPS)
Hi,
have you recompiled PHP for supporting curl / openssl ?
Seems not.
Regards,
Sebastian
----------------------------------
Sebastian Lemke
Director Application Development
----------------------------------
IMR In Medias Res
Gesellschaft fuer vernetzte Kommunikation mbH
Cross Media Solutions - Providing & Services
Application Development - Learning Systems
Tel. 06151 - 70288-0 Fax 06151 - 70288-10
sebastian_at_in-medias-res.net www.in-medias-res.net
-----Ursprüngliche Nachricht-----
Von: curl-and-php-admin_at_lists.sourceforge.net [mailto:curl-and-php-admin_at_lists.sourceforge.net]Im Auftrag von Lim Chung Keng
Gesendet: Mittwoch, 11. April 2001 05:32
An: curl-and-php_at_lists.sourceforge.net
Betreff: curl (with php to HTTPS)
Hi..
I have configured my curl binary (command line) to work with HTTPS successfully.
curl https://mysecure.server/.... does return something.
However, it does not seem to work when I used curl library functions (e.g. curl_init) to call HTTPS. Isn't it supposed to look like what the curl binary returns??
Here is the code:
<?
$url = https://mysecure.server/...;
$domain = "testxxx";
$passwd = "xxxyyy";
$req = "domain=".urlencode($domain).
"&password=".urlencode($passwd).
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $req);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$results = curl_exec ($ch);
curl_close ($ch);
print "($results)\n";
?>
Result is : () <-- Nothing...
What did I do wrong?
Thank you very much,
Keng keng_at_web.cc
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-04-11