Olly
2014-11-03 14:21:39
Came across a site http://rawgit.com/ that https isn't required therefore people without OpenSSL can read it. This means you auto update your script from Github, and it should work for everyone. :)
Just copy the URL from your browser while browsing the file you want to read, and use that as the URL parameter.
Example:
And the function (ps & Lape):
Just copy the URL from your browser while browsing the file you want to read, and use that as the URL parameter.
Example:
Writeln(GetGithubPage('https://github.com/SRL/SRL-6/blob/master/lib/utilities/drawing.simba'));And the function (ps & Lape):
function GetGithubPage(const URL: String): String;
var
NewURL: String;
p: Integer;
begin
Result := '';
p := Pos('.com/', URL);
if (p = 0) then
Exit;
NewURL := Copy(URL, p + Length('.com/'), Length(URL) - p + Length('.com/'));
Result := GetPage('http://cdn.rawgit.com/' + Replace(NewURL, 'blob/', '', [rfReplaceAll]));
end;