Click to See Complete Forum and Search --> : XMLHTTP.Send causes permission denied


sentinelws
September 23rd, 2003, 07:43 AM
I have a page which uses XMLHTTP to get the output from an ASP page to create a printer-friendly web page to print it out to a client's local printer. I have defined the XMLHTTP object:

Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

then I use this bit to get the page data

objXMLHTTP.Open "GET", RefPage, False

which doesn't cause any errors but this bit:

objXMLHTTP.Send

causes a Permission Denied error. Searched Google and found a few references but no solutions. The web site is installed on a Win2000 server running IIS5 and my local client here is also a Win2000 machine.

michaeldent
November 7th, 2003, 03:32 PM
I have exactly the same problem on a WinXP server, using exactly the same code.

Please help!

michaeldent
November 7th, 2003, 03:39 PM
I think I have found the cause:

When you attempt to access a secure URL by using the XMLHTTP request object from a script on a non-secure Web page, you may receive one of the following error messages:

With Msxml2.XMLHTTP:

Permission Denied

With Microsoft.XMLHTTP:

Access is Denied


(http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B304420)