| How to get SSL pages in PHP Can it be done? |
ggrot

msg:1272034 | 9:35 pm on Apr 30, 2002 (gmt 0) | PHP has some neat support for retrieving html over the 'net. Just open it like a regular file. This doesn't work for SSL pages (https://) until version 4.3 (which isn't yet released). Is there any hack to get around this and have it retrieve the html of a https:// page. Perhaps going through lynx? This would be a very legitimate (university) use. Stickymail me if you want to know the specifics.
|
scotty

msg:1272035 | 12:39 am on May 1, 2002 (gmt 0) | lynx? Maybe. But I find cURL [curl.haxx.se] quite easy to use. For example, <?php$url = 'https://some.secure.site/'; exec("/usr/bin/curl $url", $lines); $lines = implode($lines, "\n"); $lines = htmlspecialchars($lines); echo "<pre>$lines</pre>"; ?>
|
ggrot

msg:1272036 | 2:41 am on May 1, 2002 (gmt 0) | Ah, nice. Thanks a ton.
|
|
|