2010-01-28 18:34:03 -05:00
|
|
|
function ps_GetPage(S: String): String; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
2010-04-07 08:01:26 -04:00
|
|
|
result := CurrThread.MInternet.GetPage(S);
|
2010-01-25 08:59:44 -05:00
|
|
|
end;
|
2010-02-13 11:56:46 -05:00
|
|
|
|
2010-03-02 16:27:49 -05:00
|
|
|
function ps_InitializeHTTPClient(HandleCookies: Boolean): Integer; extdecl;
|
2010-02-13 11:56:46 -05:00
|
|
|
begin
|
2010-02-20 18:12:51 -05:00
|
|
|
result := CurrThread.MInternet.CreateHTTPClient(HandleCookies);
|
2010-02-13 11:56:46 -05:00
|
|
|
end;
|
|
|
|
|
|
|
|
procedure ps_FreeHTTPClient(Client: Integer); extdecl;
|
|
|
|
begin;
|
2010-03-02 16:27:49 -05:00
|
|
|
CurrThread.MInternet.FreeHTTPClient(client);
|
2010-02-13 11:56:46 -05:00
|
|
|
end;
|
|
|
|
|
|
|
|
function ps_GetHTTPPage(Client: Integer; URL: string): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.MInternet.GetHTTPClient(Client).GetHTTPPage(url);
|
|
|
|
end;
|
|
|
|
procedure ps_SetHTTPUserAgent(Client: Integer; Agent: string); extdecl;
|
|
|
|
begin
|
|
|
|
CurrThread.MInternet.GetHTTPClient(Client).SetHTTPUserAgent(agent);
|
|
|
|
end;
|
|
|
|
|
|
|
|
function ps_PostHTTPPage(Client: Integer; Url: string; PostData: string): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.MInternet.GetHTTPClient(Client).PostHTTPPage(url,postdata);
|
|
|
|
end;
|
|
|
|
|
|
|
|
function ps_PostHTTPPageEx(Client: Integer; Url: string): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.MInternet.GetHTTPClient(Client).PostHTTPPage(url);
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure ps_ClearPostData(Client: Integer); extdecl;
|
|
|
|
begin
|
|
|
|
CurrThread.MInternet.GetHTTPClient(Client).ClearPostData;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure ps_AddPostVariable(Client: Integer; VarName, VarValue: string); extdecl;
|
|
|
|
begin
|
|
|
|
CurrThread.MInternet.GetHTTPClient(Client).AddPostVariable(varname,varvalue);
|
|
|
|
end;
|
|
|
|
|
|
|
|
function ps_GetRawHeaders(Client: Integer): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.MInternet.GetHTTPClient(client).GetRawHeaders;
|
|
|
|
end;
|