View Full Version : HTTP.GetHTTPErrorInfo not working
mwreyf1
07-04-2008, 02:32 PM
Why would this code not return an error?
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
07-04-2008, 02:46 PM
it dose return an error
mwreyf1
07-04-2008, 02:54 PM
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.
RizlaUK
07-04-2008, 03:07 PM
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
mwreyf1
07-04-2008, 03:11 PM
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
RizlaUK
07-04-2008, 03:22 PM
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
Ulrich
07-04-2008, 04:03 PM
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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.