https

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alex_z
Forum Newbie
Posts: 3
Joined: Thu Jun 13, 2002 1:53 pm

https

Post 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 !
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post 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.
alex_z
Forum Newbie
Posts: 3
Joined: Thu Jun 13, 2002 1:53 pm

Post 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 ?
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

Are you trying to open a page on the same server or a different server?
alex_z
Forum Newbie
Posts: 3
Joined: Thu Jun 13, 2002 1:53 pm

Post 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..
yunusps
Forum Newbie
Posts: 1
Joined: Tue Jun 18, 2002 5:48 am
Location: India
Contact:

HTTPS

Post by yunusps »

u want to parse the data retured from SSL server ????
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post 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
Post Reply