I install Indy10 and try to get the content of url using indy idhttp
var
get_url: string;
resp: TMemoryStream;
begin
get_url := 'http://www.yahoo.com';//edit2.Text;
resp := TMemoryStream.Create;
try
IdHTTP1.Get(get_url+'v', resp);
resp.Position := 0; // <-- add this!!
memo1.Lines.LoadFromStream(resp);
finally
resp.Free;
end;
but it always reports error
socket error 11001 Host not found
I even enable the inbound/outbound right of my app in windows defender firewall.
but the error has not change
your comment welcome