Changeset 22 for trunk/Forms/UFormImport.pas
- Timestamp:
- May 4, 2016, 11:43:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImport.pas
r16 r22 42 42 SImportedNewAcronyms = 'Imported %d new acronyms.'; 43 43 44 45 function DownloadHTTP(URL: string; Stream: TStream): Boolean;46 var47 HTTPGetResult: Boolean;48 HTTPSender: THTTPSend;49 begin50 Result := False;51 HTTPSender := THTTPSend.Create;52 try53 HTTPGetResult := HTTPSender.HTTPMethod('GET', URL);54 if (HTTPSender.ResultCode >= 100) and (HTTPSender.ResultCode <= 299) then begin55 HTTPSender.Document.SaveToStream(Stream);56 Result := True;57 end;58 finally59 HTTPSender.Free;60 end;61 end;62 44 63 45 { TFormImport }
Note:
See TracChangeset
for help on using the changeset viewer.