Re: [twsocket] Feature: single WindowHandle/thread
Hello Francois, This would be nice :-) I heard you talking about this one year before and I was wondering when you planned to implement it officially. FP I have a development version for TWSocket which share the same window handle FP for as many TWSocket as you like (for one as now to any large value which FP fit your needs). Initially, I planned to make it available as a next majour FP release but I had no time to really finalize it yet. -- 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] Httpserv: Configure Web Page to Expire immediately
I looked and could only find it (no-cache)in the CreateVirtualDocument procedures. There is no no_cache in WebServ1.pas and I assume you refer to no-cache. I understand it for the dynamic pages but I still cannot how to do it for all other non-dynamic pages it delivers. Thanx for you fast response. Juri Keyter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 14 December 2005 21:10 To: ICS support mailing Subject: Re: [twsocket] Httpserv: Configure Web Page to Expire immediately I would like the make changes to the WebServ demo so that all pages it returns will include the 'Pragma: no-cache' + #13#10 + 'Expires: -1' + #13#10, in the header. I do not want the browsers to cache it. I want this to be the default behavior. Can someone please let me know how to do this? Just have a better look at WebServ1.pas. Search for NO_CACHE and you'll find what you need :-) -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] 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 -- 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
[twsocket] thttpcli unicode
Hi, I am evaluating ICS, specifically the component thttpcli and have the following problem: if I retrieve a web page with multibyte characters, I cannot seem to get the data in proper format. It seems like the Buffer that comes with HttpDocEnd() is a char *, not a WideString or something similar. Am I doing something wrong, or is this an omission in the component? My intention is to paste the site into an html editor I created, but ofcourse I need to keep all special characters that were on the (English) page. Thanks, Mike -- 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
[twsocket] Ftp Client with proxie
I think that is a simple question, so common, but i dont know how to do this, i try and see that exist a propertie just to inform the proxie address, but how to make a authentication in a proxie? My proxie requires authentication, how to do this with ftp client component? Cenary proxy address: 192.168.0.10 proxy user: user_proxy proxy pass: pass_proxy ftp address: 192.168.0.5 ftp user: ftp_myuser ftp pass: ftp_mypass Thanx -- 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] thttpcli unicode
I am evaluating ICS, specifically the component thttpcli and have the following problem: if I retrieve a web page with multibyte characters, I cannot seem to get the data in proper format. It seems like the Buffer that comes with HttpDocEnd() is a char *, not a WideString or something similar. Am I doing something wrong, or is this an omission in the component? The data type defined in the component is of no importance as long as you get the data. A document received from a HTTP server is just a stream of bytes. The bytes may be ascii char, binary file, unicode or whatever, it doesn't matter. Of course when you need to process it, you may need to know what you've received. Look at ContentType property and if needed additional header lines sent by the server. Just typecast your data accordingly. Buffer that comes with HttpDocEnd() is a char * I guess you mean OnDocData event handler. You can typecast the pointer to whatever you need. Length is always given in bytes. -- 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] Httpserv: Configure Web Page to Expire immediately
I looked and could only find it (no-cache)in the CreateVirtualDocument procedures. There is no no_cache in WebServ1.pas and I assume you refer to no-cache. Seems you have an outdated ICS. Download again from my website, preferably the last ICS-beta which is the version I really use in my own applications. Extracted from WebServ1.pas: const WebServVersion = 109; CopyRight : String = 'WebServ (c) 1999-2005 F. Piette V1.09 '; NO_CACHE = 'Pragma: no-cache' + #13#10 + 'Expires: -1' + #13#10; procedure TWebServForm.CreateVirtualDocument_Template( Sender: TObject; ClientCnx : TMyHttpConnection; var Flags : THttpGetFlag); begin ClientCnx.AnswerPage( Flags, '', NO_CACHE, 'TemplateDemo.html', nil, ['TIME',DateTimeToStr(Now), 'PROGVER', WebServVersion, 'SOURCE', TextToHtmlText(HttpServer1.TemplateDir + 'TemplateDemo.html')]); end; -- 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] Ftp Client with proxie
Just have a look at the source code ftpcli.pas. Search for proxy and you'll find some background informations about proxy support. There are several kind of proxies... If you have a transparent proxy, here are the steps (no programming needed !): 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; Also have a look at properties having proxy or socks in their names and property ConnectionType. Once you have read that, feel free to ask more questions. -- 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 - Original Message - From: Cristian Gallas [EMAIL PROTECTED] To: twsocket@elists.org Sent: Thursday, December 15, 2005 12:15 PM Subject: [twsocket] Ftp Client with proxie I think that is a simple question, so common, but i dont know how to do this, i try and see that exist a propertie just to inform the proxie address, but how to make a authentication in a proxie? My proxie requires authentication, how to do this with ftp client component? Cenary proxy address: 192.168.0.10 proxy user: user_proxy proxy pass: pass_proxy ftp address: 192.168.0.5 ftp user: ftp_myuser ftp pass: ftp_mypass Thanx -- 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 -- 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
[twsocket] Sending Mail using MX records
Am I correct in thinking that the SMTP client component does not support natively sending mail using MX records ? In other words if I want to send mail using MX records I'd have to do a DNS lookup on the recipients email address then connect to that server using the SMTP client component, send the email, disconnect and then repeat for any other TO, CC or BCC addresses ? If this is the case, I don't suppose anyone has any sample code where they might have already done something like this ? I searched the archives and found some code to get the MX record from a DNS server, but nothing more. regards David David Rose Navigator Systems Ltd, Network Business Centre, 3 Gloucester Street, Bath, BA1 2SE,UK Main Tel: +44 (0)7000 NAVSYS (628797) Fax: +44 (0)7000 NAVFAX (628329) Company Email: [EMAIL PROTECTED] (Private e-mail on request) CONFIDENTIALITY NOTICE The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender by replying to this message. -- 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] Sending Mail using MX records
Am I correct in thinking that the SMTP client component does not support natively sending mail using MX records ? In other words if I want to send mail using MX records I'd have to do a DNS lookup on the recipients email address then connect to that server using the SMTP client component, send the email, disconnect and then repeat for any other TO, CC or BCC addresses ? Right. Use ICS TDnsQuery component. It is good programming practice to split different operations into different component. SMTP component handle SMTP protocol, DNS component handle DNS requests such as MX record. You are free to combine both components in your own component (or application) if it happend that it is useful for you :-) If this is the case, I don't suppose anyone has any sample code where they might have already done something like this ? I searched the archives and found some code to get the MX record from a DNS server, but nothing more. Look at the NsLookup demo included with ICS. -- 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] Feature: single WindowHandle/thread
Hello! FP I have a development version for TWSocket which share the same window handle FP for as many TWSocket as you like (for one as now to any large value which FP fit your needs). Initially, I planned to make it available as a next majour FP release but I had no time to really finalize it yet. This would be nice :-) I heard you talking about this one year before and I was wondering when you planned to implement it officially. That's a huge change, and needs careful implementing. I believe that Francois wants the code to be working correctly in both single and multi threaded programs - and while it's easy in single threaded code, it isn't in multithreaded. Additionally TWSocket is async, that complicates things even more... So this long implementation time is pretty normal, at least I think so. -- Piotr Hellrayzer Dalek [EMAIL PROTECTED] -- Zobacz finalistki Miss World!!! http://link.interia.pl/f18e8 -- 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
[twsocket] FTPClient ASCII or Binary ?
Is there something wrong with the code below. As far as I understand it should be uploading in binary mode, but the FTP conversation looks like it's in ASCII mode, though the (23MB) file does seem to upload correctly. If I try something like FTPexplorer then the FTP log does show Opening BINARY mode ., so presumably it's not the server reporting wrongly or does the client generate the message text from the status number ? if FTPClient1.Cwd() then begin if not (FTPClient1.Binary) then begin FTPClient1.Binary := true; FTPClient1.TypeSet(); end; FTPClient1.dele; FTPClient1.put; end; CWD /anon_ftp/pub/RentalDesk_NX/ 250 CWD command successful DELE RentalDeskNXWorkStation.EXE 250 DELE command successful PORT 192,168,42,215,18,32 200 PORT command successful STOR RentalDeskNXWorkStation.EXE 150 Opening ASCII mode data connection for RentalDeskNXWorkStation.EXE regards David David Rose Navigator Systems Ltd, Network Business Centre, 3 Gloucester Street, Bath, BA1 2SE,UK Main Tel: +44 (0)7000 NAVSYS (628797) Fax: +44 (0)7000 NAVFAX (628329) Company Email: [EMAIL PROTECTED] (Private e-mail on request) CONFIDENTIALITY NOTICE The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender by replying to this message. -- 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] FTPClient ASCII or Binary ?
Hi, Try removing the if not (FTPClient1.Binary) then line. It could already be binary in the component but the typeset command may not have been issued before. Regards, SZ - Original Message - From: David Rose [EMAIL PROTECTED] To: twsocket@elists.org Sent: Friday, December 16, 2005 12:26 AM Subject: [twsocket] FTPClient ASCII or Binary ? Is there something wrong with the code below. As far as I understand it should be uploading in binary mode, but the FTP conversation looks like it's in ASCII mode, though the (23MB) file does seem to upload correctly. If I try something like FTPexplorer then the FTP log does show Opening BINARY mode ., so presumably it's not the server reporting wrongly or does the client generate the message text from the status number ? if FTPClient1.Cwd() then begin if not (FTPClient1.Binary) then begin FTPClient1.Binary := true; FTPClient1.TypeSet(); end; FTPClient1.dele; FTPClient1.put; end; CWD /anon_ftp/pub/RentalDesk_NX/ 250 CWD command successful DELE RentalDeskNXWorkStation.EXE 250 DELE command successful PORT 192,168,42,215,18,32 200 PORT command successful STOR RentalDeskNXWorkStation.EXE 150 Opening ASCII mode data connection for RentalDeskNXWorkStation.EXE regards David David Rose Navigator Systems Ltd, Network Business Centre, 3 Gloucester Street, Bath, BA1 2SE,UK Main Tel: +44 (0)7000 NAVSYS (628797) Fax: +44 (0)7000 NAVFAX (628329) Company Email: [EMAIL PROTECTED] (Private e-mail on request) CONFIDENTIALITY NOTICE The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender by replying to this message. -- 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 -- 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] Sending Mail using MX records
David Rose wrote: Am I correct in thinking that the SMTP client component does not support natively sending mail using MX records ? Yes. As you point out, it is an SMTP client component, and as such connects to a specified SMTP server. Performing direct connections to recipients' servers is the job of an SMTP server. In other words if I want to send mail using MX records I'd have to do a DNS lookup on the recipients email address then connect to that server using the SMTP client component, send the email, disconnect and then repeat for any other TO, CC or BCC addresses ? Yes. But be aware that many ISPs do not allow direct connections from unknown SMTP clients/servers. In particular, you must make sure that your IP address is not dynamic, and that your domain's DNS has a correct PTR record for enabling reverse-DNS lookups, otherwise they will assume you are a spammer and deny connections from you. dZ. -- 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