The only issue now is that I have to send the username/password as clear text if I don't want to manually enter it everytime. :(
Basically, you have to use URLEncode to encode the url to the document you want to view and do something like
iexplore.exe redirect.html?URL=http://username:[EMAIL PROTECTED]/document/path/document.pdf
If you are interested in the code.... <html> <title>Redirecting...</title>
<BODY>
<SCRIPT LANGUAGE="Javascript">
<!-- Begin
function noJs(destination) {
window.location.replace(destination);
window.location.href=destination;
}
// End -->
</SCRIPT><FORM NAME="redirectForm"> <INPUT TYPE="hidden" NAME="getData"> </FORM>
<SCRIPT LANGUAGE="javascript">
var locate = window.location document.redirectForm.getData.value = locate
var text = document.redirectForm.getData.value
function delineate(str)
{
theleft = str.indexOf("=") + 1;
theright=str.length;
return(str.substring(theleft, theright));
}
document.write("Proceeding to document...");
document.write("If not automatically redirected, click <a href=\""+unescape(delineate(text))+"\">here</a>");
noJs(unescape(delineate(text)));
</SCRIPT>
</body>
</html>
From: Oliver Geisser <[EMAIL PROTECTED]> Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: WEBDAV: Cannot open document by copying link into web browser Date: Thu, 05 Feb 2004 21:09:18 +0100
Hi.
J H wrote: [...]authenitcation. To get the URL I am browsing out to the document via the http://localhost:8080/webdavserver/collection/report.pdf, if I get to the document by clicking each of the links, I have no problem viewing the document. However, if I copy the report.pdf url and paste it into a new browser, I get an authentication window, enter my credentials and then I get an open/save option box, when I select either option, it says that "Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later" Now the weird thing is if I make a simple html page referencing this document, and click on it I can view the document just fine. PLEASE HELP.[...]
We had the same experience and are believing that this is a IE bug.
If you find another root of the problem I would be glad to hear about it.
Ciao, Olli
-- og
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Find great local high-speed Internet access value at the MSN High-Speed Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
