I have a free domain name with URL Forwarding (Cloaking) to another site.
If I type http://my.com/1.zip in browser's web-address then it goes to http://his.com/1.zip and downloads a file.
How can I do the same with Indy TIdHTTP (Delphi XE2). Browsers and I get 404-error at first but then they somehow download a file except me.
I need to use the first link but actually download from another site. E.g. the first site has a xxx.zip file. I want to go to http://my.com/xxx.zip but actually to download from http://his.com/xxx.zip (where the file stores).
Thanks!
Edited:
I set HandleRedirects
to true, assigned a CookieManager
(I've already seen this question Indy - IdHttp how to handle page redirects?).
Try to download this http://liga-updates.ua.tc/GDI+.zip in your Delphi
Try the
HandleRedirects
property of theTIdHTTP
component.