Hi, I need to to access to a simple webservice that accept this params:
http://webservice.mysite.com/?token=Token&action=info&cardCode=mycodewith indy component is very simple to call encoding the url and with Get method that return the result.
this is my code:
with DataMain.HTTPDataRequest.Request, Params do
begin
Method := 'GET';
Host := 'webservice.mysite.com';
FileName := '';
Clear;
AsString['token'] := URL_Encode('mytoken');
AsString['azione'] := URL_Encode('info');
AsString['cardCode'] := URL_Encode('mycode');
end;
DataMain.HTTPDataRequest.Post();
How I can call and get the result with RTC HTTP Client?