In a Delphi XE6 FireMonkey app, when I press the button, I get the following error on Android:
Socket Error #113 No route to host
procedure TForm1.Button1Click(Sender: TObject);
var
Intent: JIntent;
datosPost: TIdMultiPartFormDataStream;
mRespuestaPost: String;
begin
try
datosPost := TIdMultiPartFormDataStream.Create;
datosPost.AddFormField('usuario', txtUser.Text);
datosPost.AddFormField('password', txtPass.Text);
mRespuestaPost := DataModule2.IdHTTP.Post
('http://X.X.X.X/CGLB/ac.php', datosPost);
ShowMessage(mRespuestaPost);
finally
datosPost.Free;
end;
end;
Does the TIdHTTP
component require another component to work?