RE: [PHP] Getting https-page
| From: | Matthew Walker | Date: | Mon, 20 Jan 2003 16:57:35 +0000 |
| Subject: | RE: [PHP] Getting https-page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132261@lists.php.net to get a copy of this message | ||
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:martin@radiok2r.de]
Sent: Monday, January 20, 2003 7:47 AM
To: php-general@lists.php.net
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