Last active
December 8, 2017 11:32
-
-
Save vsmihaylovsky/ef6cc804627d28cc989fa3857ec12a31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uses | |
httpsend, | |
SysUtils, | |
Dialogs, | |
ssl_openssl; | |
{ TProgramNumbers } | |
class function TProgramNumbers.getProgramNumbers(resourcePath: string): TStringList; | |
var | |
HTTP: THTTPSend; | |
begin | |
Result := TStringList.Create; | |
HTTP:=THTTPSend.Create; | |
try | |
if HTTP.HTTPMethod('GET', resourcePath) then | |
begin | |
Result.LoadFromStream(HTTP.Document); | |
ShowMessage(Result.Text); | |
end; | |
finally | |
FreeAndNil(HTTP); | |
end; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment