cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Probelm with connecting to port 444

From: Anil Guha <anilguha_at_gmail.com>
Date: Sat, 29 Jan 2011 22:22:51 +0530

Hello Deepesh,

Which server do I check in my staging server or the server in which I am
connecting.

Thanks And Regards,
Anil Guha.

On Sat, Jan 29, 2011 at 2:15 PM, Deepesh Malviya <deep0mal_at_gmail.com> wrote:

> Check whether 444 port is open on server or not
>
> thanks
>
> 2011/1/29 Bartłomiej Blicharski <bartek5186_at_gmail.com>
>
> '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'<https://www.dexterbdportal.com:444/request.aspx%27>);
>>>
>>> //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
>>
>>
>
>
> --
> _Deepesh
>
> _______________________________________________
> 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-29