Содержание

GetURL

Gets the text of the server's response to the specified address.

Syntax

function GetURL(aURL:string):string; overload;
function GetURL(aURL:string; var aHeaders: array of string):string; overload;

Parameters

Returned value

Examples

  1. var source := GetURL('https://wordpress.com');
  2. //{$MODE PASCAL}
    var hdrs : array of string = [];
    GetURL('https://wordpress.com', hdrs);
    for var i := 0 to hdrs.length - 1 do
      Log(hdrs[i]);