You could search lamw http client component, it works very well.
I know that you want to help me with you answer, but my knowledge about programming and Lazarus was so low that I don't understand what this should help me.
Now after find out "howto" I know and understand what you mean. I did not know that there is a component "lamw http client component" to drag and drop on the form. I thought its a buildin comannd like in the windows form I had used. I even did not know about using the components but , I know this is my ignorance sorry

But know it works (not perfect) . I still try to find out some strange behavior . There is a nice webside with also the Laz2android source for an AVM device on
https://devwelt.de/myria-de/lamw/-/tree/master and after reading and reading the code the picture how this have to work got better and better.
Here is my crappy code which works more or less developed by "try & error" .
procedure TAndroidModule1.Button1Click(Sender: TObject);
var
content: string;
response: string;
ipadress: string;
url: string;
begin
ipadress := Preferences1.GetStringData('myStrData', '');
url:= 'http://' + ipadress + '/cm?cmnd=Power%20TOGGLE';
If ipadress = '' then begin
ShowMessage('erst eine IP eingeben');
end
else begin
try
content := HttpClient1.Get('http://' + ipadress + '/cm?cmnd=Power%20TOGGLE');
//ShowMessage(url);
ShowMessage('Türe öffnen');
finally
//HttpClient1.Free;
end;
end;
TextView1.text := content;
response := Copy(content,11,2);
//If response = 'ON'
//then Button1.FontColor:=colbrLimeGreen
//else Button1.FontColor:=colbrFireBrick;
end;
for all beginners :
In Lazarus there is a tab "Android bridges extra" . Inside there you can find the "lamw http client component" mentioned from Mongkey :-) . Drag and drop now the component "HTTPClient" shown in the pic below to your form. then you can use this magic function
result : = HTTpClient1.Get(Stringurl: String) : String;
I hope this will help others a little .
regards Martin