Home > Back-end >  A train of thought, how DELPHI batch analytical new cloud download address?
A train of thought, how DELPHI batch analytical new cloud download address?

Time:10-04

Download the address like this:
H ttp://www.zhaodll.com/dll/download.asp? Softid=332929 & amp; Downid=2 & amp; Iz3=39 c827a396f7559ccd973777530c3573 & amp; Id=333029
The actual parsing out like this:
H ttp://z1.zhaodll.com: 81//2013/3/BrowserEditor.zip

Thank you very much!!

CodePudding user response:

USES IdHTTP;
 function getOriginUrl (const url: string) : string; 
Var
HTTP: TIdHTTP;
The begin
HTTP:=TIdHTTP. Create (nil);
Try
HTTP. RedirectMaximum:=0;
Try
HTTP Get (url);
Except,
end;
Result:=HTTP Response. The Location;
The finally
HTTP. Free;
end;
end;

CodePudding user response:

Above is correct, because the address is redirect, server to come back

CodePudding user response:

Thank you.
  • Related