
13.08.2015, 17:41
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses WinHTTPComponents;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
WinHttp: TWinHttp;
ResponseContent: TFileStream;
begin
WinHttp:=TWinHttp.Create(Self);
ResponseContent:=TFileStream.Create('Project1.html', fmCreate);
try
WinHttp.Get('https://www.betmarathon.com/su/live/popular', ResponseContent);
ShowMessage('Ok');
finally
ResponseContent.Free;
WinHttp.Free;
end;
end;
end.
__________________
Пишу программы за еду.
__________________
|