استخدم superobject تجده في هذا الموقع https://github.com/hgourvest/superobject
وذلك باضافة كافة الوحدات (*.pas ) الى المشروع
وذلك باضافة كافة الوحدات (*.pas ) الى المشروع
PHP كود :
implementation
uses msxml, superobject;
{$R *.dfm}
procedure TForm2.Button1Click(Sender: TObject);
var
req: IXMLHttpRequest;
begin
req := CoXMLHTTP.Create;
req.open('GET', 'https://gimmeproxy.com/api/getProxy?port=8080', false, EmptyParam, EmptyParam);
req.send(EmptyParam);
showmessage(so(req.responseText)['ip'].AsString);
end;

