Check the http return code

Hello,

I would like to ask you for a help....

I am using TIdHttp component to get files from the web.

What I need is to include the check if the file is on the web before using Get...(dont want to get error 404 or any other error msgs to disturb the user)

Just make a loop which silently checks if the file is there, if not wait xx seconds (need to be able to use other functions of my programm while waiting, so not Sleep(xx)), and then check again. If the file is there, procced to Get(filename, fstream).
I cannot use get file size method, because the file size is not specified.

Thank you for your time.

Best regards,

Marian

Working in C++ Builder XE8
Last edited on
Topic archived. No new replies allowed.