In case anyone's interested, I threw together a quick-fix demo in CURL
as below and it seems ot have passed our preliminary tests...
all the Channel partners need to is include this in their first page.
It seems to be working fine *except* that it's sending me the "no
frames" version of our (horribly framey) index page... and relative
links are relative to the *script* not the original page... so I'm
having to deal with internal, relative links in those pages pulled
through this script.
so I'm still looking at it, but it otherwise works (as in I am getting
the page and I am logged in as the correct user). It's even using
"something other than basic authorisation" due to choosing "anysafe".
So thanks for all your help everyone :)
If anyone can spot some assumption I'm making that invalidates what I'm
doing - feel free to pull me up on it :)
Cheers,
Taryn
<?php
// create a new curl resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL,
+"http://ourserver.com.au/curltest/curltestpage.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERPWD, "username:mypass");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANYSAFE);
// grab URL and pass it to the browser
curl_exec($ch);
// close curl resource, and free up system resources
curl_close($ch);
?>
--
This .sig temporarily out-of-order.
We apologise for any inconvenience
- The Management
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html