Probelm with connecting to port 444
Anil Guha <[email protected]> Sat, 29 Jan 2011 01:52:15 +0530
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
Hello, I want to connect to an URL https://www.dexterbdportal.com:444/request.aspx, using PHP curl. My server curl version is 7.20. My code are as follows : <code> $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ' https://www.dexterbdportal.com:444/request.aspx'); //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_PORT, 444); //curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_SSLCERT, dirname(__FILE__)."/cacert.pem"); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $parameter); $data = curl_exec($ch); echo curl_error($ch); echo $data; curl_close($ch); </code> Can somebody please help me. Thanks And Regards, Anil Guha. _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php