Re: [twsocket] THttpCli and Socks Proxy

2017-11-24 Thread Angus Robertson - Magenta Systems Ltd
> So today I have dived into OverByteIcsHttpProt.pas and made a few > small hacks as under to bypass the DNS lookup: Thanks, I will look at this, but not this month. Stuff like this is easy, it only got broken because SOCKS got forgotten. > For me, a cleaner way would be to get the IP address

Re: [twsocket] THttpCli and Socks Proxy

2017-11-23 Thread Angus Robertson - Magenta Systems Ltd
> I was quickly able to implement the telnet part using a TWSocket > component. This works successfully through the Socks proxy and I > am very happy with it. A particular point to note is that DNS > resolution is done by the proxy machine, which is a requirement > of the project. > > For the

Re: [twsocket] FTP Client

2017-11-20 Thread Angus Robertson - Magenta Systems Ltd
> ICS sockets have built-in timeout feature, just define > BUILTIN_TIMEOUT and use TimeoutIdle / TimeoutConnect / OnTimeout. I suspect TimeoutConnect has never been tested, it is not implemented in any ICS protocol components or samples. Components like FTP would need the OnTimeout event to be

Re: [twsocket] Install V8.50 on C++ Builder 10.2.1

2017-11-18 Thread Angus Robertson - Magenta Systems Ltd
> So I can send you the complete package containing project group > and all six package project files. Thanks, please send to my email, not the list. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket

Re: [twsocket] FTP Client

2017-11-17 Thread Angus Robertson - Magenta Systems Ltd
> If I try and connect to a FTP server and that computer isn't even > switch on, the FTP client gives up after about 25 seconds. Is > this timeout goverened by the FTP component or by something > deeper down in Windows networking. I was just wondering if I > could shorten this timeout period.

Re: [twsocket] Install V8.50 on C++ Builder 10.2.1

2017-11-17 Thread Angus Robertson - Magenta Systems Ltd
> Hi. I proposed in the past to include my c++ package. However I > wad told my package is only vcl and fires not contain fmx part so > it can't be included. I've looked back through all threads about C++ and I can not see where I said that. I have said in the past that to include C++ packag

Re: [twsocket] TWSocket...

2017-11-14 Thread Angus Robertson - Magenta Systems Ltd
> >That is 25 versions old, lines move. What function? > function TCustomWSocket.GetPeerAddr: String; Thanks, literal corrected. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website a

Re: [twsocket] Twsocket Problem over Internet.

2017-11-14 Thread Angus Robertson - Magenta Systems Ltd
> anything is wrong ? Do you mean your code does not work correctly. We have made various suggestions about how it should be written to work correctly, but you have yet to implement any of them. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://list

Re: [twsocket] TWSocket...

2017-11-14 Thread Angus Robertson - Magenta Systems Ltd
> If I call TWSocket .Connect and Windows times out (about 25 > seconds), I get the TWSocket .SessionClosed callback. How do I > determine it was a timeout and not just a normal close? The onSessionConnected event is always called after Connect, with an Error number. If not zero, connection fai

Re: [twsocket] Twsocket Problem over Internet.

2017-11-11 Thread Angus Robertson - Magenta Systems Ltd
> I try send by block and have the same problem. > Sleep(100); If you changed that to Sleep(5000) it would probably work, but very slowly As I said originally, you should be using the OnDataSent to determine when the data is sent successfully, not just waiting and assuming the internet

Re: [twsocket] Twsocket Problem over Internet.

2017-11-10 Thread Angus Robertson - Magenta Systems Ltd
> HI for all, i do a prototype to transfer a imagem overt internet > with Twsocket, > but in local network works fine, but when i test with a remote > computer in internet connection > the file is sended but dont receive or receive a image with lost > collor. Your code assumes that Send() will

[twsocket] OpenSSL 1.1.0g and 1.0.2m support

2017-11-03 Thread Angus Robertson - Magenta Systems Ltd
Four new zips for Win32 and Win64 versions of OpenSSL 1.1.0g and 1.0.2m can now be downloadable from the Wiki at: http://wiki.overbyte.eu/wiki/index.php/ICS_Download PLEASE NOTE the EU in the URL, not BE, this is a new wiki server. There is one moderate security fix relating to Intel Broadwell

Re: [twsocket] Old TnCnx and SetSSHUserPass .SetIsSSH.

2017-10-28 Thread Angus Robertson - Magenta Systems Ltd
> i have an OLD procedure in Delphi6 it used TnCnx which head > TnScript1.TnConn.SetSSHUserPass(GlobalLogIn, GlobalPassWord); >  TnScript1.TnConn.SetIsSSH(true); > Now in Delphi 7 i installed a new library, a long time ago, > OverbyteIcsV8Gold > which dose not have this 2 function > SetSSHUserPas

[twsocket] Arno Garrels RIP

2017-10-27 Thread Angus Robertson - Magenta Systems Ltd
Many of you will remember Arno Garrels, who was a major contributor to ICS for many years. In April 2014, he privately told Francois and I that he was being treated for cancer, we heard from him a couple more times, but then nothing. I've just found an obituary from a old friend saying he die

Re: [twsocket] tlsv1 unrecognized name

2017-10-27 Thread Angus Robertson - Magenta Systems Ltd
> A customer is reporting an issue. Perhaps someone understands > this error better than I do: > Error: 10053, Status: 404, Reason: SSL handshake failed - > error:14094458:SSL > routines:ssl3_read_bytes:tlsv1 unrecognized name SSL handshake failures are difficult to diagnose, despite the seeming

Re: [twsocket] Wiki...

2017-10-27 Thread Angus Robertson - Magenta Systems Ltd
> Problem is fixed, at least as seen from here. Confirmed, wiki uploads worked fine last night, and content is up to date. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http:

Re: [twsocket] Wiki...

2017-10-26 Thread Angus Robertson - Magenta Systems Ltd
> Is it just me or has the Wiki > (http://wiki.overbyte.eu/wiki/index.php) disappeared? It was fine on Tuesday, but the VM has probably run out of disk space (again) so is currently dead, only Francois can fix it. As always, the latest overnight zip and SSL files may be downloaded from my web s

Re: [twsocket] - memory leak in OverbyteIcsMimeUtils.pas:=>TMimeTypesList.Destroy + fix.

2017-10-23 Thread Angus Robertson - Magenta Systems Ltd
> I_ve send the below fix for a memory leak in ICS a while ago, but > This fix has not been implemented yet in the current v8.50 > version. > Maybe you_ve missed it? I don't see your original message from August in the mailing list, or at least my copy, perhaps because your emailer is not sendin

[twsocket] ICS V8.50 is now latest stable release

2017-10-23 Thread Angus Robertson - Magenta Systems Ltd
ICS V8.50 has replaced V8.49 as the latest stable release. There are various bug fixes for changes in V8.49 and better compatibility with OS-X and C++. The only substantial new feature is HTML unicode decoding with various new functions to assist with determining the character set and codepag

Re: [twsocket] FTP over SSH

2017-10-18 Thread Angus Robertson - Magenta Systems Ltd
> The server is owned by a state administration and we have no > choice possible or at least we can not offer another file tranfer > solution... FileZilla Client offers SSH FTP. Not looked for SSH FTP Delphi components, never used the protocol. Angus -- To unsubscribe or change your setting

Re: [twsocket] FTP over SSH

2017-10-17 Thread Angus Robertson - Magenta Systems Ltd
> We have to comunicate via SFTP (FTP over SSH --> SSH 2.0 OpenSSH > 6.7_pl) and we would like to know if there is way with ICS ? If > not, have you some advice for the components to use ? SFTP can mean several different protocols. The SSH version precedes proper FTP with SSL/TLS and does not p

Re: [twsocket] ICS for MacOS target

2017-10-05 Thread Angus Robertson - Magenta Systems Ltd
> After a few minor modifications (see below), it compiles > successfully on MacOS. > > OverbyteIcsCryptuiApi:34 > - move {$IFDEF MSWINDOWS} to after "interface" > > OverbyteIcsFtpSvr.pas:2120 > - use System.SysUtils.DirectoryExists(Dir) > > OverbyteIcsSmtpProt.pas:2219: > - use ErrorCode inste

Re: [twsocket] ICS for MacOS target

2017-10-04 Thread Angus Robertson - Magenta Systems Ltd
> I downloaded the SVN trunk of ICS and tried to compile the first > package (IcsCommonDXE5Run.bpl) with XE5. Both Windows targets > compile fine, however the OSX target does not. It tries to > compile OverbyteIcsCryptUiApi: That unit supports Windows APIs, so fails on MacOS. It allows access

Re: [twsocket] ICS Server disconnects on intensive testing

2017-09-30 Thread Angus Robertson - Magenta Systems Ltd
> Yes I am using the ICS TFTPServer. No SSL. ICS version 8.44 > March. Delphi Seattle.Two physical Win7 machines with a VM in > each effectively 4 machines.All sending files to a single machine > in quick succession.After copy I am checking size and Renaming > the file.Using TFtpClient in ASync

Re: [twsocket] ICS Server disconnects on intensive testing

2017-09-29 Thread Angus Robertson - Magenta Systems Ltd
> When doing intensive testing (4 machines Put/Get 200 files) the > ICS server aborts connection at times in Passive mode. Works fine > in Active mode.If I use another server (eg. ALFTP) all is fine > even in Passive mode. Are you talking about the ICS FTP server? You don't say FTP anywhere. W

Re: [twsocket] THttpClient POST and Digest Auth

2017-09-27 Thread Angus Robertson - Magenta Systems Ltd
> I have been trying to make a POST request with Digest > authentication for hours now. > I've set up a echo HTTP server to see what's going on and it > seems that digest authentication is only made when using GET. Sorry, no idea, never used Digest authentication and have no way to test it, unle

Re: [twsocket] How to fill ICS SSL with different certificates ?

2017-09-24 Thread Angus Robertson - Magenta Systems Ltd
> But is it safe to upgrade to a SVN version rather to stay on the > stable version provided on the getit platform for our customers ? > A SVN version come with patches but with new bugs too, so;) > > Actually GetIt has the 8.44 and SVN is already on 8.50 I hope it > would be a stable numbe

Re: [twsocket] How to fill ICS SSL with different certificates ?

2017-09-22 Thread Angus Robertson - Magenta Systems Ltd
> So this sequence is not needed : For backward compatibly, there are several ways of loading certificates and private keys, and they may be in separate or bundled files. You only need to use the method that matches the files you are expecting, and only once. > Threre is a key file too, which p

Re: [twsocket] How to fill ICS SSL with different certificates ?

2017-09-22 Thread Angus Robertson - Magenta Systems Ltd
> 'd like to use a PKCS#7 certificate with ICS 8.44. and OpenSSL > 1.1.0f, but I don't know which properties to initialize. You should load OpenSSL at the start, before calling any SSL functions, otherwise it may get loaded and reloaded and be unpredictable. Your code is then confused about load

[twsocket] HTML unicode decoding

2017-09-20 Thread Angus Robertson - Magenta Systems Ltd
ICS V8.50 in the overnight zip now includes various new functions to assist with determining the character set and codepage for HTML content received from HTTP servers, and to convert correctly to Delphi unicode strings. The character set is determined according to the rules: 1 - HTTP Content-

Re: [twsocket] Problem with linebreaks in TMimeDecode

2017-09-19 Thread Angus Robertson - Magenta Systems Ltd
> I'm using ICS TPop3Cli/TSslPop3Cli components together with a > TMimeDecodeW component to handle incoming mails. Please forward two or three of these emails to my account, not the mailing list, so I can check them in my own MailMaint email reader that uses the latest ICS. Make sure the email

[twsocket] OT: QUIC protocol

2017-09-07 Thread Angus Robertson - Magenta Systems Ltd
Everyone has heard of TCP and UDP, now a new transport layer protocol has been developed by Google, QUIC which stands for 'Quick UDP Internet Connections'. https://en.wikipedia.org/wiki/QUIC QUIC aims to be nearly equivalent to an independent TCP connection, but with much reduced latency (goal:

Re: [twsocket] TDnsQuery and DnsQueryAAAA

2017-09-05 Thread Angus Robertson - Magenta Systems Ltd
> I need to resolve IPv6 address for domain name (google.com -> > 2607:f8b0:4006:80e:0:0:0:200e) > To do it I call: > DnsQuery.QueryAny('google.com',DnsQuery); The component does not currently support records directly. You can use WSocketIPv6ToStr to convert the 16 bytes of IPv6 addre

[twsocket] FTP server security fix

2017-08-27 Thread Angus Robertson - Magenta Systems Ltd
There are a number of V8.50 bug fixes in SVN and the overnight zip, including a potential security risk in the FTP server, found during a PCI DSS scan of my public server. OverbyteIcsFtpSrv.pas Stopped LIST/RETV using ..\..\..\ (already stopped for CWD) This fixes a potential security risk that

Re: [twsocket] TX509Base.LoadFromP12File

2017-08-17 Thread Angus Robertson - Magenta Systems Ltd
> I am using ICS to make a TLS connection using a client > certificate in .p12 format. This can be done by calling > LoadFromFile on the SslCertX509 field of TSslContext, which in > turn calls TX509Base.LoadFromP12File. Now fixed in SVN. Angus -- To unsubscribe or change your settings for

Re: [twsocket] OverbyteIcsHttpAppServer onSslServerName C++ error

2017-08-17 Thread Angus Robertson - Magenta Systems Ltd
> In file OverbyteIcsHttpAppServer.pas property onSslServerName > starts with small letter that causing error in C++. Finally in SVN, this was reported a few months ago but I missed it. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.

[twsocket] Web server security and best practice

2017-08-17 Thread Angus Robertson - Magenta Systems Ltd
Web sites are often hacked and compromised, mostly by the use of injected third party scripts running on advertising and tracking servers that many sites liberally link from their pages. Because historically browsers tend to do exactly what they are told, new HTTP headers keep being added that a

Re: [twsocket] Role of Error in Socket OnConnectedEvents

2017-08-10 Thread Angus Robertson - Magenta Systems Ltd
> In the ICS Socket components's OnSessionConnected / > OnClientConnect events you are passing Error parameter. When will > this get a value ?If the OnConnected events are triggered does it > mean connection is active or is it only if Error=0 ? OnSessionConnected or OnClientConnect should alway

[twsocket] OT: RAD Studio Tokyo 10.2.1 released today

2017-08-08 Thread Angus Robertson - Magenta Systems Ltd
Embarcadero has just released RAD Studio Tokyo 10.2.1 on EDN. There are a lot of fixes over the initial Tokyo release. Download links: http://altd.embarcadero.com/download/radstudio/10.2/radstudio10_2_1_esd. exe http://altd.embarcadero.com/download/radstudio/10.2/delphicbuilder10_2_1 .iso h

Re: [twsocket] OverbyteIcsHttpAppServer onSslServerName C++ error

2017-08-07 Thread Angus Robertson - Magenta Systems Ltd
> In file OverbyteIcsHttpAppServer.pas property onSslServerName > starts with small letter that causing error in C++. Thanks, fixed here, will be in SVN later this week. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailma

Re: [twsocket] HttpCli CharSet

2017-08-04 Thread Angus Robertson - Magenta Systems Ltd
> Do I have to decode the html after it gets it? Can not I set the > charset in the httpcli component? The component returns the a stream with the raw content, maybe a file, image or HTML text. You have to search the HTML text for the charset attribute and then use various functions to convert

Re: [twsocket] TX509Base.LoadFromP12File

2017-07-31 Thread Angus Robertson - Magenta Systems Ltd
> I am using ICS to make a TLS connection using a client > certificate in .p12 format. This can be done by calling > LoadFromFile on the SslCertX509 field of TSslContext, which in > turn calls TX509Base.LoadFromP12File. > > I suspect that there is a bug in the handling of the IncludePKey > pa

Re: [twsocket] I received a message about paying an invoice?

2017-07-27 Thread Angus Robertson - Magenta Systems Ltd
> Is this a scam? I received an email with my full name saying > "thanks for the email" pointing to some altyear.org domain. From > "TWSocket" Anyone can send fake emails, it has never been secure. These came from the Middle East and had the header: Subject: Your payment id number: 386039 F

Re: [twsocket] ICS V8.49 with new HTTP proxy component and multi-host SSL servers

2017-07-25 Thread Angus Robertson - Magenta Systems Ltd
ICS-V8.49 is now declared a recommended stable release, having not been touched for a couple of weeks and no outstanding bugs, and is available in historic zip files from: http://wiki.overbyte.be/wiki/index.php/ICS_Download Angus -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] Delphi 10.2 / OSX

2017-07-24 Thread Angus Robertson - Magenta Systems Ltd
> Will there be a version of ICS coming which support OSX as target > using Delphi Tokyo with firemonkey? Due to lack of Apple hardware we don't officially support OS-X at the moment, but many users have found they can install the last OS-X packages and build them on Delphi 10.2. The last over

Re: [twsocket] Problem with multiple servers - single client

2017-07-11 Thread Angus Robertson - Magenta Systems Ltd
> I have no idea, however, how to go about creating or using a pool > such as you describe. Create a pool is not hard, define multiple Wsockets as an array and then create each one in code and set it's methods and events. Then you need a second state array to keep track of which socket is busy,

Re: [twsocket] Problem with multiple servers - single client

2017-07-11 Thread Angus Robertson - Magenta Systems Ltd
> This new version has presented me with a problem. I can > successfully connect to the first device in the list, and send > the command in the OnConnected event. Through reading comments in > the source, I understand that the problems originated with the > way I'm handling this. > > After th

Re: [twsocket] Aborting a File Transfer from FtpServer

2017-07-11 Thread Angus Robertson - Magenta Systems Ltd
> My Program has a Client Side and a Server Side. I have taken care > that the Client side can abort a file transfer. Now I wanted to > provide Abort on the Server Side as well. or Is this not they way > it is done ? The FTP server is usually non-interactive, it would not consider aborting a tr

Re: [twsocket] Aborting a File Transfer from FtpServer

2017-07-11 Thread Angus Robertson - Magenta Systems Ltd
> What is the correct way of Aborting a File Transfer from > TFtpServer ? The FTP server does not care how you stop a download, it can cope with the ABORT command or lost connection. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/c

Re: [twsocket] Multiple SSL host support

2017-07-07 Thread Angus Robertson - Magenta Systems Ltd
> Are the components stable or is it better to wait until fully > tested? > I don_t want to run into issues. The IcsHost stuff as actually added to ICS V8.45 back in April, although it has been tweaked and one bug fixed then. The application web server has been in use at my commercial web serv

Re: [twsocket] New ICS Proxy Components

2017-07-07 Thread Angus Robertson - Magenta Systems Ltd
> I have a PostgreSQL 9.6.3 database server with SSL enabled. > There are certificate files available. > I would like to connect to PostgreSQL server using TIcsProxy SSL > enabled. > I would like my regular database connection components to use that > connection as normal. However, communication w

[twsocket] Multiple SSL host support

2017-07-07 Thread Angus Robertson - Magenta Systems Ltd
SocketServer Added multiple SSL host support to TSslWSocketServer and to TSslHttpServer and TSslHttpAppSrv (and TIcsProxy). Previously, although the servers supported multiple IP addresses and ports, a lot of application code was needed to support multiple hosts, SSL certificates an

[twsocket] New ICS Proxy Components

2017-07-07 Thread Angus Robertson - Magenta Systems Ltd
TIcsProxy is protocol agnostic and may be used to proxy any TCP protocol, the sample includes SMTP, POPO3, NNTP and telnet. It may be used to allow non-SSL applications to access servers that require SSL such as forums.embarcadero.com. TIcsHttpProxy is a full forward and reverse HTTP/HTTPS proxy w

[twsocket] ICS V8.49 with new HTTP proxy component and multi-host SSL servers

2017-07-07 Thread Angus Robertson - Magenta Systems Ltd
ICS now includes two new components, TIcsProxy and TIcsHttpProxy. Also, added multiple SSL host support to TSslWSocketServer, and to the two web server components. There are new sample SSL applications to test the proxy components and web server host support. The multiple IcsHosts support inclu

Re: [twsocket] FTP file download done

2017-06-27 Thread Angus Robertson - Magenta Systems Ltd
> UpdateFileAge and UpdateUFileAge seem to be for the server side, > what I need is to set the file age of the downloaded file. They work fine in TMagFtp which is an FTP client. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-

Re: [twsocket] Aborting PUT

2017-06-27 Thread Angus Robertson - Magenta Systems Ltd
> Only remaining is the Resume option. Thanks for the suggestion. > Question: With TFtpClient to Resume transfer do I have to know > the remote file size ? You only have to know the position from which you want to resume, ie the size of the file partially downloaded. But unless you know the ex

Re: [twsocket] FTP file download done

2017-06-26 Thread Angus Robertson - Magenta Systems Ltd
> yes indeed it was version 2.7 I tried to install Sorry, bad link, now fixed. > As predicted, I run into other issues when I now try to install > the newest version. The only change I believe is needed is for an ICS change I made last week, in MagentaFtp3.pas change GetUAgeSizeFile to IcsGet

Re: [twsocket] FTP file download done

2017-06-26 Thread Angus Robertson - Magenta Systems Ltd
> However, when I try to install magxfer, I can compile it but when > I try to install it, Delphi (7) > complains about the missing package OverbyteIcsSslDel70, of which > I cannot find any reference within ICS. We stopped tested against Delphi 7 several years ago, although ICS still supports it

Re: [twsocket] FTP file download done

2017-06-24 Thread Angus Robertson - Magenta Systems Ltd
> upon downloading a file from an FTP Server I am trying to reset > the filedate of the local file to > that of the original, would this be possible using ICS. ICS has two functions UpdateFileAge and UpdateUFileAge in OverbyteIcsFtpSrvT.pas to set the time stamp to local or UTC time respectively.

Re: [twsocket] Aborting PUT

2017-06-16 Thread Angus Robertson - Magenta Systems Ltd
> I have a backup application that I am revamping. You got me > right, I am using both the Client and Server modules as my > application is loaded on Source machine and Destination too. I > get your point that I will have to work from the Client side > majorly and not from the Server side.Thank

Re: [twsocket] Aborting PUT

2017-06-16 Thread Angus Robertson - Magenta Systems Ltd
> From what I gather is that MagFTP is the Client Side. For client > side I will refer your logic, Thanks. My requirement is for the > Server Side. I can also pass the command from Client side to the > Server to do the rename but I thought Server doing the Rename > would be faster and would als

Re: [twsocket] Aborting PUT

2017-06-15 Thread Angus Robertson - Magenta Systems Ltd
> How does Server understand that FtpClient Aborted the PUT. In > 'OnStorSessionClosed' 'Error=0'. > > My intention is that at PUT of a file I rename the HostFilename > to Filename$$ and when completely received at Server side Server > will rename it back to 'Filename' by removing the ending $$

Re: [twsocket] FtpServer Event for Receiving File

2017-06-14 Thread Angus Robertson - Magenta Systems Ltd
> One more related question. In the OnStorSessionClosed the > Client.FilePath gives the Filename too. If this is standard > behavior then I do not need to concatenate the Path and Filename. Yes, that is standard, it will never change or lots of applications will break. Angus -- To unsubscribe

Re: [twsocket] FtpServer Event for Receiving File

2017-06-14 Thread Angus Robertson - Magenta Systems Ltd
> When a File has been received at the Server end which is the > event that will indicate that ? OnStorSessionClosed. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.

Re: [twsocket] Want FtpClient to be able to pull files from any Drive

2017-06-13 Thread Angus Robertson - Magenta Systems Ltd
> I want to allow the FtpClient to be able to pull files from any > Drive of the FtpServer machine. Issue is that I cannot go beyond > my HomeDirectory. I have made 'Allowed := True' in > 'OnChangeDirectory' Event in FtpServer. You need to remove ftpsCdupHome from Options, it's a deliberate fea

Re: [twsocket] ICS on macOS

2017-06-12 Thread Angus Robertson - Magenta Systems Ltd
> Yes, I can imagine. Perhaps a virtual machine with macOS as a > guest OS could be good option. I'd guess that would require an illegal copy of MacOS, but a little Googling suggests it may be possible. However there would still be learning curve to get such a VM running, and I really don't hav

Re: [twsocket] ICS on macOS

2017-06-12 Thread Angus Robertson - Magenta Systems Ltd
> Sorry Angus, your spam filter hates me: cmd: EHLO cgate.tamos.com [216.198.226.100] Mail rejected due to SMTP Spam Blocking: _REVERSEDNSLOOKUP There is no reverse DNS set-up for your mail server, so I'm afraid many ISPs will block your email. A standard spam test is to make sure the IP address

Re: [twsocket] ICS on macOS

2017-06-12 Thread Angus Robertson - Magenta Systems Ltd
> You don't need macOS to syntax-check for the OSX target > platform, as far as I remember. Anyway... You have to set-up a Connection Profile before you syntax check or build for a non-Windows platform, and that means installed PAServer first on that platform. We do try and allow for non-Wind

Re: [twsocket] ICS on macOS

2017-06-12 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] ICS on macOS > It appears that the latest ICS version was never tested on macOS. No, none of us has MacOS so it's untested, well known in this mailing list. If you want fix the broken units in SVN which is V8.48 and email them to me, I'll update them for V8.49 later this

Re: [twsocket] Stopping FTP upload

2017-05-31 Thread Angus Robertson - Magenta Systems Ltd
> What's the best way to stop TFTPServer from allowing a user (all > users) to upload a file ? TFtpCtrlSocket has a property AccountReadOnly which is not used in the actual component, but should be set in your application upon login depending on what rights the user should have. You then check

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-31 Thread Angus Robertson - Magenta Systems Ltd
> I need to make connections every 1 second, Data, and of that > received data make another connection depending on the content, > my question is, how to wait the data of the first connection and > only then make the second, third etc In the timer, you simply check State <> httpReady and give up

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread Angus Robertson - Magenta Systems Ltd
> Can inform me the name of the demo project that use cookies, I > did not find, thank you! Sorry, bad memory, I did a MimeDemo, but not a Cookie demo. The main test project for cookies was the browser demo, FrameBrowserIcs.dpr and specifically FBUnitIcs.pas. And it seems they should be save

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread Angus Robertson - Magenta Systems Ltd
> Thanks, it worked perfectly, I managed to navigate the other > pages, but now another problem has appeared, I changed the user > and logged in again, and all the pages that I navigate are with > the data of the first user, even sending a post with incorrect > login and password He logs in as if

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread Angus Robertson - Magenta Systems Ltd
> One detail I forgot to mention, in the first example you gave me, > I also had to add the line " SslHttpCli.Cookie := > IcsCookies.GetCookies(SslHttpCli.URL);" in the event > "OnLocationChange" is this correct? Should not be necessary, and a response with a Location: header should not set cook

Re: [twsocket] OpenSSL 1.1.0f and 1.0.2l support

2017-05-26 Thread Angus Robertson - Magenta Systems Ltd
> BE suffix works as well ! And it is even the preferred address. Not from here: Firefox can't find the server at wiki.overbyte.be. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website a

[twsocket] OpenSSL 1.1.0f and 1.0.2l support

2017-05-26 Thread Angus Robertson - Magenta Systems Ltd
Four new zips for Win32 and Win64 versions of OpenSSL 1.1.0f and 1.0.2l can now be downloadable from the Wiki at: http://wiki.overbyte.eu/wiki/index.php/ICS_Download PLEASE NOTE the EU in the URL, not BE, this is a new wiki server. There are no security fixes, just bug fixes related to buildin

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-25 Thread Angus Robertson - Magenta Systems Ltd
> I get the login data for the login page using "POST" and > "PostASync", but when doing a GET on the next page that > should be accessed with the logged in user Almost certainly cookies, these are not handled internally between requests, you need to repeat your line: HttpCli1.Cookie := IcsCookie

Re: [twsocket] Async DNS lookup option for TWSocket

2017-05-17 Thread Angus Robertson - Magenta Systems Ltd
> I'd vote for new State. Alternatively the wsConnecting could be > used but there could be more unexpected cases when state is > "connecting" but socket is still invalid. Just about to fix this, going through my pending bugs list. > I found another issue. If we call Close on a socket, DNS lo

Re: [twsocket] Latest ICS 8.44 and C++Builder 10.2

2017-05-12 Thread Angus Robertson - Magenta Systems Ltd
> For some reason (maybe I misapplied the patch?), I also had to > comment this line out of OverbyteIcsUtils.hpp: > extern DELPHI_PACKAGE GUID WINTRUST_ACTION_GENERIC_VERIFY_V2; Now added as an external, so should work next time. Angus -- To unsubscribe or change your settings for TWSocket mai

Re: [twsocket] Recognising FTP Activity

2017-05-12 Thread Angus Robertson - Magenta Systems Ltd
> Is there a way to understand that File Transfer is actively > taking place on FTP Client side eg: FtpClient.State / > FtpClient.Connected ? There are several events that can be used to monitor progress, OnCommand, OnResponse and OnProgress64, during an actual transfer. Suggest you look at the

Re: [twsocket] SSL enabling SMTPCLi

2017-05-04 Thread Angus Robertson - Magenta Systems Ltd
> thanks for your valuable information! > Some of it indicates, that it might indeed be easier than feared > after looking at the demo project. ;-) Or look at the code of my mail queue component, which validates chains using either a PEM bundle or the windows store, just borrow the code. I've

Re: [twsocket] SSL enabling SMTPCLi

2017-05-04 Thread Angus Robertson - Magenta Systems Ltd
> I shortly looked at the mentioned sample. It contains some pem > files which seem to be certificates. Correct? > The seem to be different from the ones I already used for my > DataSnap rest server to SSL enable it. In general, SSL clients don't need certificates, rarely is it necessary for a c

Re: [twsocket] SSL enabling SMTPCLi

2017-04-30 Thread Angus Robertson - Magenta Systems Ltd
> it's difficult nowdays to find an analogue phone port and a > working modem ;-) And a working version of Windows, DUN is so rarely used now that Microsoft seems to no longer test it themselves, and DUN no longer works in Windows 10 version 1703, dial attempts just get a hardware error. So if

Re: [twsocket] SSL enabling SMTPCLi

2017-04-29 Thread Angus Robertson - Magenta Systems Ltd
> Sending still works, but only for SMTP servers not requiring TLS. > What would I need to do to TLS enable this application? Look at the sample OverbyteIcsSslMailSnd, which is the SSL enabled version. Essentially, you change to use TSslSmtpCli which has extra events to handle the SSL handshaking

Re: [twsocket] Async DNS lookup option for TWSocket

2017-04-18 Thread Angus Robertson - Magenta Systems Ltd
> But I can see wsoAsyncDnsLookup making new applications easier by > avoiding needing to code OnDnsLookupDone. Just tried using wsoAsyncDnsLookup in a new component, and discovered a flaw in the implementation. Currently wsocket State is not changed when the DNS lookup starts, so it remains ws

Re: [twsocket] Latest ICS Rev 1308 and C++Builder 2007

2017-04-18 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] Latest ICS Rev 1308 and C++Builder 2007 > FYIhad to change Line 441 of OverbyteIcsHttpAppServer.pas > to: > property OnSslServerName; > from > property onSslServerName; Is C++ really case sensitive? Will fix when I submit other pending changes. Ang

Re: [twsocket] Firemonkey on OSX

2017-04-13 Thread Angus Robertson - Magenta Systems Ltd
> If it's still not working add a line to the HOSTS file: > 217.146.102.149 svn.overbyte.be > > It is all still down, both wiki.overbyte.be and svn.overbyte.be > are not accessible by name SVN is still up on the IP above or sites9.magsys.co.uk which is the real host name on my server. But t

Re: [twsocket] send a binary file via https post

2017-04-11 Thread Angus Robertson - Magenta Systems Ltd
> has someone a simple example to send a zip-file via HTTPS POST? ICS contains dozens of sample applications, documented in the readme. OverbyteIcsHttpPost.dpr posts a file. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mai

Re: [twsocket] Latest ICS Rev 1308 and C++Builder 2007

2017-04-10 Thread Angus Robertson - Magenta Systems Ltd
> But as I could not see the patch to OverbyteIcsUtils.pas I replied to the long message containing the patch, but I did not copy the entire long message since it's a waste of everyone's email bandwidth and patience. Anyway, I've just updated SVN with the C++ patch, it will be zipped about 11pm

Re: [twsocket] Firemonkey on OSX

2017-04-10 Thread Angus Robertson - Magenta Systems Ltd
> Can we get a heads up when SVN is up and running again, please? SVN was never down, there was a DNS problem with svn.overbyte.be which was fixed last Tuesday as François announced here. If it's still not working add a line to the HOSTS file: 217.146.102.149 svn.overbyte.be Angus -- T

Re: [twsocket] Latest ICS Rev 1308 and C++Builder 2007

2017-04-10 Thread Angus Robertson - Magenta Systems Ltd
> I've tried the very latest ICS Rev #1308 but still have the issue > with the recently added HRESULTS e.g: > static const HRESULT TRUST_E_NOSIGNATURE = -2146762496; Have you tried the patch for OverbyteIcsUtils.pas posted in this mailing list last week, in response to your original message. It

Re: [twsocket] Firemonkey on OSX

2017-04-07 Thread Angus Robertson - Magenta Systems Ltd
> It seems that svn is not working or at least on my system but I > was able to get the latest (436) in ZIP format. The DNS was messed up for a few days, but SVN is zipped at 11pm each day and also available for download. > With the changes listed below, I had no problems compiling the > code

Re: [twsocket] Can I send few text lines along with file FTP

2017-04-06 Thread Angus Robertson - Magenta Systems Ltd
> When I send a file via FTPClient I would like to send additional > details (Text) so that FTPServer knows what he has to do with > that file. How do I accomplish this ? You design some protocol of your own to do this. One possible solution is to send a second file with an extra file extensi

Re: [twsocket] Latest ICS 8.44 and C++Builder 10.2

2017-04-06 Thread Angus Robertson - Magenta Systems Ltd
> ICS documentation its states that 64 bits is only partially > supported with Delphi code I always build the latest run time packages for both Delphi Win32 and Win64, the readme comment merely confirms that only Delphi is supported for modern compilers: "With Delphi XE2 and later, VCL 64-bit W

Re: [twsocket] Latest ICS 8.44 and C++Builder 10.2

2017-04-04 Thread Angus Robertson - Magenta Systems Ltd
> Please find my patch for OverbyteIcsUtils.pas below. I have added > a series of $EXTERNALSYM directives in order to prevent symbols > duplications. Thanks, I've updated my unit with your changes, it will be in SVN later in the week with V8.45. Angus -- To unsubscribe or change your setti

Re: [twsocket] overbyte.be down?

2017-04-04 Thread Angus Robertson - Magenta Systems Ltd
> I'm I right that www.overbyte.be is down ? Sorry, the registry that hosted the old domain has closed down and the transfer to a new registry has not completed yet. Meanwhile an alternative domain eu works: http://www.overbyte.eu/ http://wiki.overbyte.eu/wiki/index.php/ICS_Download SVN does

Re: [twsocket] Latest ICS 8.44 and C++Builder 10.2

2017-04-04 Thread Angus Robertson - Magenta Systems Ltd
> I have installed C++Builder 10.2 and triad to add the ICS > components. I got a few errors like > Duplicated components FMX etc_ Sorry, as the readme and download pages clearly state, the last C++ release ICS officially supported was XE3 for which packages are available. None of the current I

Re: [twsocket] What's the purpose of the Accept parameter in HttpCli.OnCookie event?

2017-03-30 Thread Angus Robertson - Magenta Systems Ltd
> I thought maybe this was a way to automatically set received > cookies to the HttpCli, but upon some testing this wasn't the > case. Observing the code there doesn't seem to be any purpose to > this variable: > > else if Field = 'set-cookie' then begin > > bAccept := TRUE; >

Re: [twsocket] Max FTP connections

2017-03-27 Thread Angus Robertson - Magenta Systems Ltd
> What can be the maximum number of FTP clients connected to the > FTPServer. I've tested over 200 simultaneous FTP sessions, but see below. > What can be the maximum number of clients connected to the Socket > Server. I've tested 2,000 simultaneous TCP/IP sessions in a single thread, on Wind

Re: [twsocket] RAD Studio 10.2 Tokyo

2017-03-23 Thread Angus Robertson - Magenta Systems Ltd
> The ANSI string is not the problem (in my thinking). The main > problem I have is that Linux does not have a message pump, so I > don't know how to support events. That is why the FMX version of ICS has lots of extra units, like Ics.Posix.Messages.pas that 'Emulates Windows messages on MacOS'

<    1   2   3   4   5   6   7   >