[twsocket] FTPcli proxy server
Hello, I want to use the ftpcli component and use it to connect to a server server through a proxy server. The proxy server uses ftp authentication. How should i configure this in the FTP component. At this moment the problem is that i can not choose the option for username and password for the proxy server separately from the username and password for the ftp server. If this isn't possible with the ftpcli component, what alternative should i try out? Greetings, Marenk Vos -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPcli proxy server
Marenk Vos wrote: Hello, I want to use the ftpcli component and use it to connect to a server server through a proxy server. The proxy server uses ftp authentication. How should i configure this in the FTP component. At this moment the problem is that i can not choose the option for username and password for the proxy server separately from the username and password for the ftp server. If this isn't possible with the ftpcli component, what alternative should i try out? This was answered by Steve Williams quite a while ago: == First of all, not all proxies or firewalls are the same. So have a look at product documentation. However, most products support a transparent proxy which doesn't require any special programming: 1) Instead of connection to a remote FTP server, you connect to the proxy 2) User name is replaced by user name, followed by '@' sign then followed by target remote FTP server host name. 3) Password is usual remote FTP server password. 4) Most require using Passive mode. Example: You want to connect to ftp.borland.com, using anonymous connection, company firewall/proxy is running on host named proxyserver. FtpCli1.HostName := 'proxyserver'; FtpCli1.UserName := '[EMAIL PROTECTED]'; FtpCli1.Password := '[EMAIL PROTECTED]'; FtpCli1.Passive := TRUE; == -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Freeze when using smtp after recreating itsparentform
Arno, See answers below... // Henrik -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Arno Garrels Skickat: den 18 december 2006 19:40 Till: ICS support mailing Ämne: Re: [twsocket] Freeze when using smtp after recreating itsparentform (According to Arno he had tested the example procedure we have been talking about on a computer with Intel Dual Core and XP without any problems since he continued to talk about external issues... :-) Correct, since we cannot be sure that you tried everything you can to rule out external issues. Well I've tried to assure You of this in earlier emails. Of course it must be some environmental condition that makes ICS hang since the same application works on some and hangs on some. (If it makes You feel better You can even call it external differences :-).) But the point is that as long as ICS makes the application hang on SOME healthy computers, its impossible to use as a part of our applications. We have too many customers world wide to take that risk. I know that it is easier not believing but it _is_ possible to duplicate this error on proven healthy computers. At our company we have been able to duplicate the freeze on not one but TWO of our test computers where one of them are NEW. Have you scanned with a different AV tool yet, i.e. Norton AV trial? Have you checked for spyware and trojan horses? Well I hope that Dell, in this case, doesn't sell infected computers but just to try make a believer out of You I now (once again I might add) tested both computers for virus with: Norman, McAfee and Trend Micro. And for spy ware and such with AdAware and SearchDestroy. And as I tend keep telling You: Nothing is found! Can you rule out that an application that has set a global hook is actually working correctly? i.e. RealVNC server injects a wm_hook.dll into each process space, if such interception was buggy one can imagine that it would hurt, ICS may be hit especially since TWSocket is being notified about socket events by window messages. View the DLLs linked to a process with ProcessExplorer: http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExp lorer.mspx I've downloaded the application above but I don't know how too proceed. What am I looking for and how do I do to get that information in ProcessExplorer? It also may help to see a packet dump logged with Ethereal. Se answer above... -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Freeze when using smtp after recreating itsparentform
I tested the NUMPROC=1 but with no difference I'm afraid... Well, perhaps we've done what we can for now. As I've said before: Thank You very much for Your efforts! I can not spend so many more days on this now (the same for You I would imagine) I have not read the whole thread but I saw that using WSocketForceLoadWinsock solve the problem. Why not using it ? It has no adverse effect in your case. It would be annoying only when your application has to run whenever winsock is installed or not. Those days, it is hard to find a system where TCP/IP stack is not installed ! Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Freeze when using smtp after recreating itsparentform
Henrik wrote: Arno, Can you rule out that an application that has set a global hook is actually working correctly? i.e. RealVNC server injects a wm_hook.dll into each process space, if such interception was buggy one can imagine that it would hurt, ICS may be hit especially since TWSocket is being notified about socket events by window messages. View the DLLs linked to a process with ProcessExplorer: http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExp lorer.mspx I've downloaded the application above but I don't know how too proceed. What am I looking for and how do I do to get that information in ProcessExplorer? At first, my above question has a typo, it should read Can you rule out that an application that has set a global hook is not working correctly? Ok, start Wilfried's test app., in ProcessExplorer click on the ICS test application, the listview at the bottom will either list linked DLLs or handles, toggle the view to display DLLs. Take a closer look at any DLL that's not from Microsoft, for instance if Sygate personal firewall was running you would find a SSSensor.dll from Sygate Technologies, this is an injected DLL. Try to find it's parent application or service and stop it unless you think that test program's process space is clean (you need to restart the test application to make changes visible). It also may help to see a packet dump logged with Ethereal. It's a packet logger/analizer, it shows you exactly any byte that passes your nic. I would set a capture filter like port 25 or port 53 to only get traffic on ports 25 and 53 logged. Start the capture and run the ICS test app. unless the error happens, close the test app., the stop the capture and save the log as Ethereal/tcpdump(*.cap,*.pcap), file format libpcap to a file, upload the log somewhere and post the link here. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Freeze when using smtp after recreating itsparentform
Hello Henrik, I can not spend so many more days on this now (the same for You I would imagine) so I'm planning to return to Indy as long as I can solve their But you can safely use ForceLoadWinsock ! There is absolutely no problem to use it. Only me (we) wanted to dig out where the problem is. ForceLoadWinsock did solve the problem as I recall some days ago. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Freeze when using smtp after recreating itsparentform
I use the same component and send norwegian, swedish and even chinese chars in the subject (but Outlook can't show chinese in the subject on my computer). Use Quoted printable or Base64 to encode special chars. Example for Base64 could be like this (C++): HtmlSmtpCli1-HdrSubject = =?utf-8?B? + Base64Encode(UTF8Encode(SubjectInputFromUserEdit-Text)) + ?=; If you have a GUI-component that can handle WideStrings, then you can have any language in the subject using the above form. First the unicode-string is UTF8-encoded, then it is Base64-encoded and I think this form can hold any possible char. If you use Quoted printable instead you would save a little space because only the char's above 126 or so is encoded, I have code for this too if you ar interested. Regards Bjørnar imagine) so I'm planning to return to Indy as long as I can solve their issue with Swedish characters in the subject. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be