Page 1 of 1

https

Posted: Thu Jun 13, 2002 1:53 pm
by alex_z
Does anybody can help w ssl connections ? i need to connect to ssl server (https) in my script, post some data, recive answer, parse it and so on. I just don't know how to connect to such server from script. Help !

Posted: Thu Jun 13, 2002 5:08 pm
by mikeq
Generally scripts run on the SSL server, there isn't any difference in the scripts it is the webserver that handles the encryption of the data as it is passed to the client.

Posted: Fri Jun 14, 2002 11:29 am
by alex_z
mikeq wrote:Generally scripts run on the SSL server, there isn't any difference in the scripts it is the webserver that handles the encryption of the data as it is passed to the client.
so i can do like

$fp = fsockopen($host, 80, &$errno, &$errstr, 30); ??

just another port ? Is that all ?

Posted: Mon Jun 17, 2002 3:45 am
by mikeq
Are you trying to open a page on the same server or a different server?

Posted: Mon Jun 17, 2002 10:46 am
by alex_z
mikeq wrote:Are you trying to open a page on the same server or a different server?
different server. My script should connect to that server, get page, parse it and so on..

HTTPS

Posted: Tue Jun 18, 2002 5:48 am
by yunusps
u want to parse the data retured from SSL server ????

Posted: Tue Jun 18, 2002 7:29 am
by enygma
fsockopen wont support secure socket layers until PHP 4.3.0 (trust me, I've looked)
so, for now, you'll need to compile in cURL support and get the cURL software for the machine you're running the script on. It's pretty easy to use if you know a little bit about HTTP.

-enygma