На андроиде использую THTTPClient
var
stRequest,stResponse:TStringStream;
h:THTTPClient;
resp:IHTTPResponse;
URL:string;
begin
stRequest:=TStringStream.Create(Msg,TEncoding.ANSI);
stResponse:=TStringStream.Create();
h:=THttpClient.Create;
try
try
h.ContentType := 'application/json';
h.Accept := 'application/json, text/plain, */*';
resp:=h.Post('http://'+serverIP+':1400.', stRequest, stResponse);
Result.Code:=resp.StatusCode;
Result.Text:=stResponse.DataString;
except
Result.Code:=resp.StatusCode;
end;
finally
h.free;
stRequest.Free;
stResponse.Free;
end;
для версии андроида 7.0 все нормально. А вот в версии 9.0 выдает сообщение "Cleartext HTTP traffic to 45.xx.xxx.xx not permitted"
помогите куда копать