WinHTTP failing with .asp pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neilx
    New Member
    • Jun 2007
    • 4

    WinHTTP failing with .asp pages

    I have a WinHttp.WinHttp Request.5.1 object that works perfectly when GETing .htm pages, but times out when trying to GET .asp pages.

    I have tried using setCredentials:

    Code:
    Set Http = CreateObject("WinHttp.WinHttpRequest.5.1")
    Http.Open "GET", "http://<path>/filename.asp", False
    Http.setCredentials "<domain>\Administrator", "<password>",0
    Http.Send
    This also fails. The system is WinXP with IIS 5.

    I can run the same code on a Win 2003 server running IIS 6 and it works. Is there a setting I have forgotton on my system that will let this work?
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    I'm copying this to the iis forum just in case they know more about this issue.

    Jared

    Comment

    • danp129
      Recognized Expert Contributor
      • Jul 2006
      • 323

      #3
      Is the problem with any .asp page or just a certain one? I had an issue with pages in the past that redirected to another page. Not sure if the fix was to install some updates or to switch to a different component. You might try using CreateObject("M icrosoft.XMLHTT P") and see how it goes...

      Comment

      • neilx
        New Member
        • Jun 2007
        • 4

        #4
        Any page. This is the one I use for testing and it shows that the content is not important:
        Code:
        <!-- new_page_1.asp -->
        <html>
        <head>
        <title>New Page 1</title>
        <body>
        Test
        </body>
        </html>
        I have tried Msxml2.ServerXM LHTTP.6.0 and Microsoft.XMLHT TP with the exact same result - a timeout on .asp but no problem with .htm. It is something to do with the ability of the component to run asp.dll I think.

        Comment

        • danp129
          Recognized Expert Contributor
          • Jul 2006
          • 323

          #5
          ok, just to verify since you mentioned the version of IIS. Is your problem with IIS being able to serve pages (ie can you browse to http://<path>/filename.asp just fine in a browser) ? Or is it only a problem you're having using xmlhttp to request .asp pages regardless of which server it is located?

          Comment

          • neilx
            New Member
            • Jun 2007
            • 4

            #6
            The latter. The asps are browsable.

            Comment

            Working...