Indy 10 socket error 11001 Host not found lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- teriyaki · 2021-10-20 03:24 I install Indy10 and try to get the content of url using indy idhttp Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 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 ---------------------------------------------------------------------- engkin · 2021-10-20 06:00 get_url+'v'? ---------------------------------------------------------------------- dsiders · 2021-10-20 13:43 Quote from: engkin on October 20, 2021, 08:00:32 amget_url+'v'? GIGO ---------------------------------------------------------------------- Remy Lebeau · 2021-10-20 18:20 Quote from: teriyaki on October 20, 2021, 05:24:11 amCode: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i IdHTTP1.Get(get_url+'v', resp); Why are you appending 'v' to the URL?  You are asking TIdHTTP to retrieve the URL 'http://www.yahoo.comv', and obviously the hostname 'www.yahoo.comv' does not exist, hence the error. Also, note that http://www.yahoo.com redirects https://www.yahoo.com, so you need to have an SSLIOHandler component assigned to the TIdHTTP.IOHandler property, such as TIdSSLIOHandlerSocketOpenSSL.  Which TIdHTTP can handle for you, provided you have a suitable SSLIOHandler unit in your uses clause.