Look into the CURL libraries.
http://www.php.net/manual/en/ref.curl.php

They essentially allow you to emulate the behavior of a browser. Where I
work, we use them to make SSL connections to payment processing
gateways.

Matthew

-----Original Message-----
From: Martin Thoma [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 20, 2003 7:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting https-page

Hello!

You can easily get an webpage with:
 $fp = fopen("http://www.mydomain.com/";, "r");
 if ($fp) exit;
 while(!feof($fp))
 { $line .= fgets($fp, 4096);
 }
 fclose($fp);
 print $line;

But this doesn't work with https (SSL). How can I get an https-page?

Martin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to