curl-and-php
Re: Probelm with connecting to port 444
Date: Fri, 28 Jan 2011 22:00:31 +0100
'https://www.dexterbdportal.com:444/request.aspx, maybe ":444" make problems
2011/1/28 Anil Guha <anilguha_at_gmail.com>
> 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
>
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-01-28