I have access to a secure server that contains schedules and lists amongst other things and I want to display this information on my own sites secure section via a PHP script.
The HTTPS url requires you to login. Can I pass the login information to the HTTPS server and download the content using the php script without having the user to type in the username / password combination?
This is the script I have so far. My server doesn't support cURL so I need a work around.
Code: Select all
<?php
$url = "https://secureserver.co.uk";
$user = "username";
$pass = "password";
$data = fopen ($url,r);
$calendar = fread ($data);
echo $calendar;
?>
I've been reading about secure sockets, digest authentication etc and it's not really making much sense!!
EDIT: I asked my webhost to install cURL. Their response in a nutshell: 'no'
Any ideas would be great!
Andy