Welcome to the Indigo Rose Software discussion forums! You will need to sign up for a forum account and login before you can post. Need help? View the Forum FAQ.
Announcement
Collapse
No announcement yet.
unable to check that if file exists on web servervor not?
here is the solution
--replace HTTP.GetFileSize(replace your web server settings here)
FileSize = HTTP.GetFileSize(sFileOnServer, nServerMode, nServerTimeout, nServerPort, tAuthData, tProxyData, nil);
if FileSize ~= -1 then
Label.SetText("Label2", "File found")
end
Beware that not all servers send a Content-Length header for dispatched content, this might fail in some occasions.
Perhaps it's better to test for a HTTP 200 OK or HTTP 404 Not Found
Comment