> $hostname="https://www.url.com"; > $port=443; > $loginmessage="GET / HTTP/1.0\r\nHost: www.php.net\r\n\r\n"; > $timeout=30; > $fp = fsockopen ($hostname, $port, $errno, $errstr, $timeout); > if (!$fp) { > echo "$errstr ($errno)<br>\n"; > } else { > fputs ($fp, $loginmessage); > while (!feof($fp)) { > echo fgets ($fp,128); > } > fclose ($fp); > }
You could try using $url = "https://$user:$[EMAIL PROTECTED]" I haven't tried this yet ;-)) HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php