I am trying to
access kodi via json using NetHTTPClient1 with no success ...
this is my code:
Code:
var
Strm: TStringStream;
begin
Strm := tstringstream.Create(Edit_send.text, tencoding.UTF8);
Strm.WriteString('');
Strm.Position := 0;
self.NetHTTPClient1.Accept := 'application/json';
self.NetHTTPClient1.ContentType := 'application/json; charset=utf-8';//application/json
self.NetHTTPClient1.AcceptEncoding := 'UTF-8';
self.NetHTTPClient1.Post('http://admin:mypw@192.168.1.1:8080/Jsonrpc',Strm,nil).ContentAsString(tencoding.UTF8);
how can i solve?
thank you