Delphi Idhttp Socket Error 10061 Connection Refused
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta socket error 10061 connection refused smtp Discuss the workings and policies of this site About Us Learn
Socket Error 10061 Connection Refused Hatası
more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us
Socket Error 10061 Connection Refused Windows 7
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Socket Error 10061 Eol Connection Refused
you, helping each other. Join them; it only takes a minute: Sign up How to resolve Indy EIdSocketError 10061 Connection refused on some machines (using Delphi & TidHTTP) up vote 1 down vote favorite I have checked the many other threads here on this error but they all seem nuch more complicated than my very simple situation. I have a TIdHTTP component (ver 10.2.5) on a form in Delphi 2009 connected to a TIdSSLIOHandlerSocketOpenSSL. All parameters have been left at their default. I get the text of a web page using the single line MyString := IdHTTP1.Get(searchURL); At home on a Win 7 machine this line works fine but if I copy my program to a server at work (running server 2013) that line generates the error EIdSocketError 10061 Connection refused. Other posts mention checking the port etc but there is no port property in TidHTTP. Is this error at work likely to be caused by the firewall or antivrus program at work preventing my program getting on the Internet, or is there something special I need to do in my program? (Putting the same url into Internet Explorer at work shows the expected page ok) For info the default parameters of the TIdHTTP and TIdSSLIOHandlerSocketOpenSSL components are as follows: object IdHTTP1: TIdHTTP IOHandler = IdSSLIOHandlerSocketOpenSSL1 AllowCookies = True ProxyParams.BasicAuthentication = False ProxyParams.ProxyPort = 0 Re
exception: --------------------------- De{*word*81} Exception Notification --------------------------- Project ChangeWP.exe raised exception class EIdSocketError with message 'Socket Error # 10061 Connection refused.'. Process stopped. Use Step or Run to continue. --------------------------- OK Help --------------------------- My internet explorer have no any proxy,and my dns setting problem,Why is it?Fllowing are that code: function GetWebPageHTML(URL: string): string; var IDHTTP: TIDHttp; begin Result:= ''; IDHTTP:= TIDHTTP.Create(nil); try try idhttp.HandleRedirects:= true; idhttp.ReadTimeout:= SysParam.HTTP_TIMEOUT; Result:= IDHTTP.Get(URL); { Here raise a exception --------------------------- De{*word*81} Exception Notification --------------------------- Project ChangeWP.exe raised http://stackoverflow.com/questions/33564763/how-to-resolve-indy-eidsocketerror-10061-connection-refused-on-some-machines-us exception class EIdSocketError with message 'Socket Error # 10061 Connection refused.'. Process stopped. Use Step or Run to continue. --------------------------- OK Help --------------------------- } except end; finally IDHTTP.Free; end; end; Delphi,CB --- posted by geoForum on delphi.newswhat.com Remy Lebeau (TeamB) Delphi Developer 2004-12-18 03:56:13 AM Re:EIdSocketError with message 'Socket Error # 10061? "tzdgg"
Thank you Remy. FWIW, Indy download page is confusing, just a reminder to myself / anyone in the same https://recalll.co/app/?q=delphi%20-%20(Indy)%20TIdHTTP%20EIdSocketError%20Socket%20Error%20 position, the real download link to the latest build is here...I'll try with the latest build & see if I still have this issue, thanks! Project blabla.exe raised exception class EIdOSSLUnderlyingCryptoError with message 'Error connecting with SSL. error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure'. IMHO, the download page is not confusing, it is accurate and straight forward, it just socket error takes a few links to find the actual download link, that's all. There is a lot of information to convey to users before they download. You are getting an SSL handshake error, so no, your SSL setup is not valid. Double-check your settings. Remy: IdHTTP.Post(https_url) works just fine so I assume SSL is fine...I'm no expert here, what socket error 10061 do you mean by SSL setup is not valid? delphi - (Indy) TIdHTTP EIdSocketError Socket Error # 0 exceptions whe... View More at http://stackoverflow.com/questions/13233648/indy-tidhttp-eidsocke... Please upgrade to the latest Indy 10 version, which is 10.5.8 r4743. SSL-related issues with Error Code 0 were fixed over a year ago. Thank you so much Remy! I deleted the old Indy version (including the old dcu, bpl, etc... files) re-build everything and now I'm not able to see the error when running the tests on EC2/Windows (ie. upload files from EC2 to S3). However, I still see the same errors when uploading from my machine... The fact that the ResponseCode is -1 means that either the response is malformed or the error is occurring before TIdHTTP even receives the first line of the response. Can you see the response correctly in a packet sniffer like Wireshark or Fiddler? What does the call stack look like in the debugger when the error is raised? [TCP Retransmission] Ignored Unknown Record Secure Sockets Layer Ignored Unknown Record GlobalCoo