Delphi Indy Socket Error 11001
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow socket error 11001 host not found delphi the company Business Learn more about hiring developers or posting ads with us Stack
Delphi Indy Socket Example
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community
Socket Error 11001 Host Not Found Windows 7
of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Host not found - Trying to download a csv file using Indy in Delphi XE7 up vote
Socket Error 11001 Error Number 0x800ccc0d
0 down vote favorite I'm trying to download a csv from the .gov.uk website, however, when I run the procedure an error is displayed: Socket Error 11001 Host not found. procedure TFrm_Settings.btn_FetchPricesClick(Sender: TObject); var Url, LocalFile: String; FileStrm: TFileStream; Http : TIdHTTP; begin Url := 'http://www.gov.uk/government/uploads/system/uploads/attachment_data/file/400489/weekly_fuel_prices_csv.csv'; LocalFile := 'FuelPrices.csv'; FileStrm := TFileStream.Create(LocalFile, fmCreate); Http:= TIDHTTP.Create(nil); try try Http.Get(Url, FileStrm); finally FileStrm.Free; end; except DeleteFile(LocalFile); raise; end; delphi csv delphi-xe indy share|improve this socket error 11001 h1z1 question asked Feb 10 '15 at 11:01 Riley 12 3 That request is redirected, so set Http.HandleRedirects := True before you perform it. P.S. fix your try..finally..except blocks. –TLama Feb 10 '15 at 11:04 Thanks for the quick reply, I added the Http.HandleRedirects := True, but am still experiencing the same error. I also tried accessing several other csv files, with the same result. –Riley Feb 10 '15 at 15:28 Could this be due to the fact that the network I am on uses a proxy? –Riley Feb 10 '15 at 15:31 The error means that the local PC cannot resolve the hostname via DNS. Since the network is using a proxy, you need to connect TIdHTTP to the proxy and let the proxy resolve the DNS. If the network is using an HTTP proxy, you can fill in the details in the TIdHTTP.ProxyParams property. If the network is using a SOCKS proxy, you can assign a TIdIOHandlerStack to the TIdHTTP.IOHandler property, and then assign a TIdSocksInfo to the IOHandler.TransparentProxy property. –Remy Lebeau Feb 10 '15 at 19:05 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft save
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this socket error 11001 error number 0x800ccc0d outlook express site About Us Learn more about Stack Overflow the company Business Learn socket error 11001 hatası more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x socket error 11001 jane Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Indy http://stackoverflow.com/questions/28430014/host-not-found-trying-to-download-a-csv-file-using-indy-in-delphi-xe7 Mail server up vote 2 down vote favorite Following is my code for the smtp client for sending email VAR SMTP : TIdSMTP; MSG : TIdmessage; begin MSG:=TIdmessage.Create(NIL); TRY WITH MSG.Recipients.Add DO BEGIN Name:='me025'; Address:='me025@gmail.com' END; MSG.BccList.Add.Address:='me025@yahoo.com'; MSG.From.Name:='self025'; MSG.From.Address:='self025@127.0.1.1'; MSG.Body.Text:='
Enterprise, and i have an application running on win98, Win2000 and WinXP, in that application i use idFTP to transfer some files. Well, http://www.delphigroups.info/2/61/183241.html in two machines (more than 150 machines have the application and everything works fine) I get the error "Socket error #11001" and I cant transfer any file, with a previous version (working with http://www.cyberforum.ru/delphi-networks/thread1356785.html FastNET TNMFTP), in that two machines, I don't get that error and works fine. What can I do? Thank you very much for any help you can provide!! Regards, Gil Martin Jame socket error Delphi Developer Mon, 01 Aug 2005 18:38:58 GMT Re:URGENT : Problem using Indy - idFTP - "Socket error # 11001" QuoteMrio Gil
ïàðîëü Ðåãèñòðàöèÿ Ðåãèñòðàöèÿ Òåñòû Áëîãè Ñîîáùåñòâî Ïîèñê Ññûëêè ñîîáùåñòâà Ñîöèàëüíûå ãðóïïû Ïîèñê Google ïî ôîðóìó Ïîèñê Yandex ïî ôîðóìó Ïîèñê ïî ôîðóìó Ðàñøèðåííûé ïîèñê Òåñòû Ñïèñîê òåñòîâ Ê ñòðàíèöå... 1 èç 2 1 2 > » @virusssss 0 / 0 / 0 Ðåãèñòðàöèÿ: 14.01.2015 Ñîîáùåíèé: 18 18.01.2015, 23:50 IdHttp.connect - socket error # 11001 host not found #1 Âñåì ïðèâåò! Äåëàþ ïðîâåðêó äîñòóïíîñòè ñàéòà. Êîä ðàáîòàåò, âñå õîðîøî, óñëîâèÿ âûïîëíÿþòñÿ, íî åñëè õîñò äóñòóïåí. Åñëè æå ñåðâåð íå äîñòóïåí, âûäàåò îøèáêó: socket error # 11001 host not found Ïîäñêàæèòå. ïîæàëóéñòà, êàê ñêðûòü îøèáêó ïîäêëþ÷åíèÿ? Delphi1 2 3 4 5 6 7 8 9 10 11 begin idhttp1.host:=('google.ru'); idhttp1.connect; if idHTTP1.Connected=false then begin ShellExecute(Handle,'open','success.mp3',0,0,SW_NORMAL); idHttp1.Disconnect; end else begin ShellExecute(Handle,'open','error.mp3',0,0,SW_NORMAL); end; Similar Ýêñïåðò 41792 / 34177 / 6122 Ðåãèñòðàöèÿ: 12.04.2006 Ñîîáùåíèé: 57,940 18.01.2015, 23:50 IdHttp.connect - socket error # 11001 host not found Ïîñìîòðèòå çäåñü: Delphi socket error # 10065 no route to hostError #10061 idHTTP Delphi Delphi idhttp proxy Socket errorAsynchronous socket error 10060 Delphi Îøèáêà Indy Host not found Delphi Ïîñëå ðåãèñòðàöèè ðåêëàìà â ñîîáùåíèÿõ áóäåò ñêðûòà è áóäóò äîñòóïíû âñå âîçìîæíîñòè ôîðóìà. @Dryg 65 / 60 / 16 Ðåãèñòðàöèÿ: 09.04.2009 Ñîîáùåíèé: 331 Çàïèñåé â áëîãå: 1 19.01.2015, 09:28 IdHttp.connect - socket error # 11001 host not found #2 Ñîîáùåíèå îò virusssss idhttp1.host:=('google.ru'); íàäî óêàçûâàòü http èëè https, à òî îí íå ïîíèìàåò, ÷òî òû õî÷åøü îò íåãî Delphi1 idhttp1.host:=('https://www.google.ru/'); @FIL Ìîäåðàòîð 3342 / 2480 / 469 Ðåãèñòðàöèÿ: 19.09.2012 Ñîîáùåíèé: 7,759 19.01.2015, 09:48 IdHttp.connect - socket error # 11001 host not found #3 È óñëîâèå ïåðåïóòàíî. @mss Çàáëîêèðîâàí 19.01.2015, 10:45 IdHttp.connect - socket error # 11001 host not found #4 Ñîîáùåíèå îò Dryg íàäî óêàçûâàòü http èëè https, à òî îí íå ïîíèìàåò Åðóíäà ïîëíàÿ. @Dryg 65 / 60 / 16 Ðåãèñòðàöèÿ: 09.04.2009 Ñîîáùåíèé: 331 Çàïèñåé â áëîãå: 1 19.01.2015, 10:57 IdHttp.connect - socket error # 11001 host not found #5 Ñîîáùåíèå îò mss Åðóíäà ïîëíàÿ ïîÿñíè! @