We help IT Professionals succeed at work.

ISA Blocks http response from external server

948 Views
Last Modified: 2011-09-20
Hi Experts,

I am trying to call an external web page from our internal intranet using ASP/VBScript but ISA Server seems to be blocking the request.

This is the message ISA Server returns:
Error Code: 403 Forbidden. The ISA Server denied the specified Uniform Resource Locator (URL). (12202)
IP Address: **********
Date: 11/12/2007 11:49:44
Server: Our Internal Server
Source: proxy


The code that I use is:
    Dim url
    Dim oXMLHttpRequest

    url = "url goes here"
    Set oXMLHttpRequest = Server.CreateObject("Microsoft.XMLHTTP")
    oXMLHttpRequest.open "POST", url, false
    oXMLHttpRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    oXMLHttpRequest.setRequestHeader "Connection", "Keep-Alive"

    oXMLHttpRequest.send
   
    If oXMLHttpRequest.responseText <> "000" Then
        Response.Write("Error Code: " & oXMLHttpRequest.responseText)
    End If
    Set oXMLHttpRequest = Nothing

We have tried setting up rules as described at http://articles.techrepublic.com.com/5100-6350_11-6029304.html but this does not solve the problem either. Anybody have any idea what the problem is?
Comment
Watch Question

Commented:
The ISA Server, by default, only allows traffic to certain sites. There's a system policy that only lets you access certain sites like windowsupdate.com, microsoft.com. Have you tried adding the target URL to the policy to see if that resolves it?

Author

Commented:
Hi LOOM,

Do you where I can check this list of allowed sites is ISA? This site would be a site that we post to and receive responses back from.

Thanks.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Sweet, cheers LOOM that worked a treat! I added the domain for the site in question and ISA then allowed me to post and get a response from that domain using a XMLHTTP Request.

K.

Commented:
And with that, I earned my Guru ranking in ASP!
Weee hooooo!

Thanks for the points liaminnes! Glad the solution worked for you!

From email:
You have achieved Guru Certification in Active Server Pages (ASP) by earning 151,614 points!

Author

Commented:
Glad I could help you with your ranking... keep it up!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.