Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    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

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    it dose return an error
    Last edited by RizlaUK; 02-01-2009 at 11:34 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    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.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    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
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    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

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    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
    Open your eyes to Narcissism, Don't let her destroy your life!!

  7. #7
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    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

Similar Threads

  1. Loop not working
    By playmenow in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 04-12-2006, 08:48 AM
  2. Working with Tables and Files
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 12-23-2003, 08:22 AM
  3. The ? char code is not working
    By Marker0077 in forum Setup Factory 6.0
    Replies: 7
    Last Post: 06-21-2003, 04:04 PM
  4. File - execute -> Working Directory
    By mtway in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 12-10-2002, 01:40 PM
  5. Open URL not working
    By Celeste in forum AutoPlay Menu Studio 3.0
    Replies: 4
    Last Post: 10-03-2001, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts