HTTP.GetHTTPErrorInfo not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mwreyf1
    Indigo Rose Customer
    • Aug 2004
    • 417

    HTTP.GetHTTPErrorInfo not working

    Why would this code not return an error?


    Code:
    HTTP.Download("http://www.asitehere.com/file.ext", "c:\\Downloads\\file.ext",MODE_BINARY, 20, 80, nil, nil, nil);
    
    if (Application.GetLastError()~= 0) then
        -- An Error Occurred
        HTTP_Error = HTTP.GetHTTPErrorInfo();
        Dialog.Message("HTTP error " .. HTTP_Error.Number, HTTP_Error.Message);
    end
    XP Pro SP3 w/ IE 7
  • RizlaUK
    Indigo Rose Customer
    • May 2006
    • 5552

    #2
    it dose return an error
    Last edited by RizlaUK; 02-01-2009, 11:34 AM.
    Embrace change in your life, you never know, it could all work out for the best

    Comment

    • mwreyf1
      Indigo Rose Customer
      • Aug 2004
      • 417

      #3
      Do you have IE 7 ?

      If so, that's weird.

      I have an app with nothing but one button with that EXACT code in it and it comes back successful. It even creates the Downloads folder but of course it is empty.

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5552

        #4
        yup, IE 7.0.5730.13

        i also made a empty project, i put your code as is, in page on show and tested

        i tought it maybe a firewall isseu, i disabled my fw and got the same result again
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • mwreyf1
          Indigo Rose Customer
          • Aug 2004
          • 417

          #5
          Getting stranger...

          Just terminal served into work pc and it works when ran from that location.

          Still getting sucess here.

          Maybe ISP and how it returns errors.

          Or some IE 7 setting that's set that I don't know about. I can't imagine that there would be such a setting though.

          Oh well...


          Thanks for the reply Rizla

          Comment

          • RizlaUK
            Indigo Rose Customer
            • May 2006
            • 5552

            #6
            yup, that is strange


            long shot, have you tried resetting IE settings to default

            other than that iv got no idea what could be causeing it, maybe submit a support ticket to IR

            sorry i couldent be of more help
            Embrace change in your life, you never know, it could all work out for the best

            Comment

            • Ulrich
              Indigo Rose Staff Member
              • Apr 2005
              • 5130

              #7
              Just a question: Which DNS servers are you using? There are servers that redirect you to a search page, so you never get an error message in your browser, even if you request garbage. What happens if you paste that exact URL in your browser? Do you get an error (a "page not found" or HTTP 5xx error)? I use OpenDNS and I don't get an error at all here. So I won't rely on this status, as there was no error with the HTTP operation. I would check if I was able to download a file, and proceed from there...

              Ulrich

              Comment

              Working...
              X