Re: [twsocket] FTP component not ready

2013-06-10 Thread Angus Robertson - Magenta Systems Ltd
As far as I know, using the Async commands, the FTP component not ready error occurs if you initiate a command before the previous one has generated the RequestDone event. Yes, the State variable is checked to ensure the next command can be performed safely. I have one customer who is

Re: [twsocket] FTP component not ready

2013-06-10 Thread Angus Robertson - Magenta Systems Ltd
The original problem is that the FTP component not ready just turns up very occasionally from doing a series of getAsync commands. So assuming that the error might be from a PORT or PASV, should the sequence of events I take be to call ftp.Abort followed by some sort of restart of my state

[twsocket] Magenta Systems File Transfer Components v4.1 for ICS V8

2013-06-12 Thread Angus Robertson - Magenta Systems Ltd
There is a new release of the TMagFtp and TMagFileCopy components for ICS V8 today, that may be downloaded from: http://www.magsys.co.uk/delphi/magxfer.asp Main changes are as follows, also XE4 packages added: Added IgnorePaths to SelectCopyFileList and TMagFileCopy to ignore files where

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Angus Robertson - Magenta Systems Ltd
This works as long as the connection is'nt idle for longer than the value configured in KeepAliveTimeSec (which defaults to 10 sec). In that case the connection is terminated by the server Never really looked at KeepAlive. From the naming it sounds like a means of keeping an idle

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Angus Robertson - Magenta Systems Ltd
I don't think so. According to a short test it seems that the idle timeout is usually even lower. Presumably you mean timeout is much higher, ie 5 mins for Apache? Currently, our KeepAlive only checks the last send (in RealSend) or received (DoRecv) and ignores whether the stream has been

[twsocket] SSH

2013-07-18 Thread Angus Robertson - Magenta Systems Ltd
Is there an easy way to support SSH for ICS? Just need secure telnet to a 30 year old Unix application. I've looked at the OpenSSH pages, but this seems to be tools rather than APIs. I understand the OpenSSL DLLs provide all the encryption needed. Has anyone tried to use SSHTNEMULVT from

Re: [twsocket] Not all data sent via THTTPServer being received in Chrome, Firefox, RESTClient

2013-08-07 Thread Angus Robertson - Magenta Systems Ltd
I call SendStream() on the connection having created the full DocStream It is usual to set the stream, then: Flags = hgSendStream so the component does the hard work. To be honest I don't know (am struggling to assert) whether the data is being gzip or not before it is sent. Gzip is

Re: [twsocket] Implementing Push Notifications to Custom Clients

2013-08-09 Thread Angus Robertson - Magenta Systems Ltd
We want to implement something like push notifications to custom applications from our backend server to custom clients. To an extent, this depends on how many clients are connected, since servers have limits. If low, you can keep TCP/IP connections open and just design your own protocol

[twsocket] SMTP server component

2013-08-27 Thread Angus Robertson - Magenta Systems Ltd
I have a project coming up that will need an SMTP server component, listening on port 25 and accepting incoming emails, one high level component that ICS currently lacks. Ian Baker of Codecutters contributed an open source SMTP server component 10 years ago, as did Sven Schmidts of Concept

Re: [twsocket] TSslFtpClient and OmniThreadLibrary speed

2013-09-17 Thread Angus Robertson - Magenta Systems Ltd
The Create constructor makes a copy of the fFileList array and creates the TFtpClient object. StartSync does the upload. The only thing that should matter is that you set MultiThreaded=true and use TIcsWndControl.MessagePump instead of Application.ProcessMessages. My TMagFtp component has a

Re: [twsocket] Best way to upgrade ...

2013-09-19 Thread Angus Robertson - Magenta Systems Ltd
I am working on a project that was originally written in D5. And the project using a free IRC component, SlyIrc by Steve Williams, were it has used TWSocket v434 for its wsocket needs.  So, once I edit this line to correctly use the FWSocket I now get the following  hard error:

Re: [twsocket] Best way to upgrade ...

2013-09-19 Thread Angus Robertson - Magenta Systems Ltd
Can not tell you if it actually works Should have said that since you want to use XE3, you also have to undertake a Unicode conversion of the source code, since all the PChars and Strings will now become wide by default. You can trying changing them all to PAnsiChar and AnsiString, but you'll

Re: [twsocket] Connecting with Philips HUE

2013-10-14 Thread Angus Robertson - Magenta Systems Ltd
Thank you . It compiled without errors using XE5 and returned this result. PresentationURL : http://192.168.0.105/index.html Have you only got a single lamp? Most installations would come back with multiple lamps. Now you have the IP address of the lamp, and can use the HTTP client GET

Re: [twsocket] Connecting with Philips HUE

2013-10-14 Thread Angus Robertson - Magenta Systems Ltd
The HUE bulbs are linked via ZigBee and unfortunately Philips has not published that specification. That means any of my other custom lights cannot be connected through the HUE Ethernet/ZigBee bridge which is what the ICS application reported. OK, so you are talking to a bridge, which is

Re: [twsocket] ICS-SSL / Proxy, Must I add something ?

2013-11-04 Thread Angus Robertson - Magenta Systems Ltd
*Subject:* [twsocket] ICS-SSL / Proxy, Must I add something ? *From:* Bruno Mannina bmann...@free.fr I try to use HTTP-SSL behind a proxy server, so I give host/port/user/pwd to the httpssl component. But it seems to not work. Does a browser like Firefox work through the same proxy server

Re: [twsocket] FTP Client - reconnecting

2013-11-06 Thread Angus Robertson - Magenta Systems Ltd
I don't think so (though I will double check), as this is happening about 30 seconds in to the process, I've already iterated through all the directories and put together a list of files I need to download and downloaded quite a few of them. Never the less, your log shows a connected

Re: [twsocket] FTP Client - reconnecting

2013-11-07 Thread Angus Robertson - Magenta Systems Ltd
Angus, trying to change the code to use your components. Does the TMagFtp component support a CopyType := FCTypeDates ; Sorry, seems like I never supported specific date ranges for FTP which is mostly used to synchronise remote and local directories, or for specific files. if so, how does

Re: [twsocket] FTP Client - reconnecting

2013-11-07 Thread Angus Robertson - Magenta Systems Ltd
*Subject:* Re: [twsocket] FTP Client - reconnecting Now trying with your components and although it's much better behaved and fails gracefully, it still fails (in my app or the supplied demo app). However as both your app and my app fail with my hosted FTP server and both work with your

Re: [twsocket] SslSmtp - What do I need for an eMail Client?

2013-11-13 Thread Angus Robertson - Magenta Systems Ltd
I want to switch my eMail Program from smtp to ssl smtp. I've tried the demos - everything looks fine, but what did I have to deliver with my application (in special I mean the certificates!). Did I have to generate and deliver the certificates? I want to use TLS and SSL. Assuming you

Re: [twsocket] Errors while send, if client disconnected from socket

2013-12-24 Thread Angus Robertson - Magenta Systems Ltd
Sometimes client can disconnect on multithreaded server while send, after that I receive Range check error or Socket is not connected (#10057 in Send) SVN for V8 is updated with Francois' cast fix in various PostMessages to avoid the range check error (some were already cast correctly). The

Re: [twsocket] [Off Topic] Vote for Delphi on Code2013

2014-01-03 Thread Angus Robertson - Magenta Systems Ltd
Well, I said how to vote: You can cast your vote by sending a tweet So it's effectively a survey of Twitter followers about their favourite language, excluding the many people who don't use Twitter g If they wanted a properly representative survey, there would be several voting methods.

Re: [twsocket] [Off Topic] Vote for Delphi on Code2013

2014-01-03 Thread Angus Robertson - Magenta Systems Ltd
Is the relative number of language users different among those having a tweeter account and the others? I don't think so. So the result IS representative. Older people often don't have the time or inclination to keep up with the trends our children follow. I've been using the same social

Re: [twsocket] RFC 822 Date Time Conversion

2014-01-30 Thread Angus Robertson - Magenta Systems Ltd
Has anyone got a solid method of converting RFC 822 date times (e.g. Thu, 30 Jan 2014 05:48:07 +0800) to a TDateTime. There are RFC1123 date parsing functions in OverbyteIcsSmtpSrv.pas and OverbyteIcsHttpProt.pas, but neither handle the time zone. Angus -- To unsubscribe or change your

Re: [twsocket] OverbyteIcsFtpCli v8 (current) old problem resurfaces

2014-02-07 Thread Angus Robertson - Magenta Systems Ltd
{ V8.03 InternalReady happens between multiple commands, ignore it } if FState in [ftpReady {, ftpInternalReady}] then begin Include ftpInternalReady in the check and it should work again. @Angus, why did you change it? For the reason documented in the code, the longer version is

Re: [twsocket] default gzip of json by THTTPServer - is it possible or am I to do it myself?

2014-02-07 Thread Angus Robertson - Magenta Systems Ltd
I have enabled content encoding on my THTTPServer: And return content to my client using AnswerString pClientCnx-AnswerString(Flags, 200 OK, application/json, sResponseHeader,

Re: [twsocket] default gzip of json by THTTPServer - is it possible or am I to do it myself?

2014-02-12 Thread Angus Robertson - Magenta Systems Ltd
Not used JSON myself, but I'd guess if it's a compressable response then 'application/json' needs to added to that line so compression is not skipped. SVN was updated a couple of days ago with this JSON fix in the HTTP Server, also now compressing Javascript, and recognising both as MIME

Re: [twsocket] Handshake of TWSocket

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
is there anybody who can and will explain to me if the socket handshake protocol is implemented GET /chat HTTP/1.1 Host: server.example.com Upgrade: websocket Sorry, websockets is not supported by the ICS HTTP components. Another ICS user stas...@orc.ru has implemented

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
The process should be as follows: 1) Use HTTP POST to pass username and password parameters to login URL 2) A token string is returned if login was successful 3) The token is then used as Basic Authentication using HTTP GET to retrieve JSON from different API URL Step 1 and 2 are

Re: [twsocket] No Socket Handshake available

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
I encountered that the socket handshake, as described in RFC 6455, is not implemented in the ICS components of overbyte. That standard is websockets, not sockets, totally different. Websockets is not supported by ICS, see the answer I gave you yesterday which you ignored, I suggest an ICS

Re: [twsocket] When receiving UDP datas, find if there were sent through a broadcast

2014-02-25 Thread Angus Robertson - Magenta Systems Ltd
I have a server with an UDP socket listening. Some Clients connect with the Ip address of the server : Direct Addressing. Some Clients do not know the Ip address of the server, therefore they connect by sending a broadcast. In OnDataAvailable event, i would like to know which Clients have

[twsocket] OT: Microsoft network sniffers

2014-03-11 Thread Angus Robertson - Magenta Systems Ltd
Never noticed them before, but Microsoft has two network traffic monitoring or sniffer tools. The older one is Microsoft Network Monitor 3.4 for XP and later, and Microsoft Message Analyzer 1.0 for Windows 7 and later, both free from the download center. Has anyone tried either? I note that

Re: [twsocket] Using ICS V5 POP3 with SSL

2014-03-12 Thread Angus Robertson - Magenta Systems Ltd
*Subject:* [twsocket] Using ICS V5 POP3 with SSL *From:* Veit Zimmermann zimmerm...@vectronic-aerospace.com *To:* twsocket@lists.elists.org I have to replace an old ICS V5 with a SSL enabled version. I thought the easiest way would be to replace it with the V5 SSL version, but It doesn't

Re: [twsocket] SFTP

2014-03-19 Thread Angus Robertson - Magenta Systems Ltd
I am starting to get users who want to step up the security of the FTP connection and are tending towards SFTP (S being Secure and not Simple in this case) rather than FTPS. Simplicity of getting though firewalls seems to be a consideration. Don't believe SSL makes firewall support any

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-18 Thread Angus Robertson - Magenta Systems Ltd
Any technical reason for discarding this functionality I submitted some time ago? How do we test it? There is no sample to run. Nothing to test against. I don't have time to read the Google Drive API, Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Clarification Re: FTP TLS, SSL, + passive mode problem

2014-04-18 Thread Angus Robertson - Magenta Systems Ltd
asked me about it), this server is private (hosting in US : atomicvps.com) So you are using a public server on a WAN, with a NAT routers or a firewall on either end of the connection? as another test i also installed local filezilla server and was able to reproduce same problem with it

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-18 Thread Angus Robertson - Magenta Systems Ltd
It's exactly the same code as for POST and PUT. Only the HTTP method name changes. So there is no way for us to test the changes, without extra development to change our web samples? I also can not make TortoiseSVN recognise your patch file, which is either faulty or badly formatted, or

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-20 Thread Angus Robertson - Magenta Systems Ltd
16:34, Angus Robertson - Magenta Systems Ltd wrote: So there is no way for us to test the changes, without extra development to change our web samples? I also can not make TortoiseSVN recognise your patch file, which is either faulty or badly formatted, or maybe I just don't know how to use SVN

[twsocket] SSL improvements

2014-04-20 Thread Angus Robertson - Magenta Systems Ltd
To improve handling and reporting of PEM SSL certificates, there is a new component class TX509Ex derived from TX509Base adding properties for most common certificate entries including extensions, there are the properties reported for my code signing certificate, as reported by the updated

Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-22 Thread Angus Robertson - Magenta Systems Ltd
The Transmit method returns failure even though the file is successfully uploaded. Notice how the request is 18, the StatusCode is 226 but an Error 500 is returned with a winsock error of #10053). 226 is success, so no idea why you get 500 as well. The transmit method does several

Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-25 Thread Angus Robertson - Magenta Systems Ltd
Not sure if this gives us more information to go on. Any ideas? Assuming you are logging OnError, I can see no errors reported, so all we have is the error code 500 after a sequence of FTP events that all appear to have completed correctly. Are you logging the ErrorMessage property at the end,

Re: [twsocket] C++Builder XE6

2014-05-13 Thread Angus Robertson - Magenta Systems Ltd
I would be happy to share my work if you'd like and you think it might be helpful to others... Probably, but we really need all three missing BCB versions tested, which needs someone with all these versions installed, which is not trivial. I have Windows 7 VM that is currently 120 gigs with

Re: [twsocket] TSslPop3Cli... 6.13

2014-05-26 Thread Angus Robertson - Magenta Systems Ltd
I am having trouble deleting messages in Gmail via POP3. No problem here with some code I wrote 16 years ago: Opening Mailbox: Google Mail ! Starting SSL handshake Mailbox Opened Securely with TLSv1.2, cipher ECDHE-RSA-AES128-GCM-SHA256 +OK Gpop ready for requests from 82.41.127.188

Re: [twsocket] TSslPop3Cli... 6.13

2014-05-26 Thread Angus Robertson - Magenta Systems Ltd
Note messages are only deleted when the mailbox is actually closed with the QUIT command. I think that is the issue. This is a 24/7 program and I do not issue the quit until the program is stopped. POP3 mailboxes are rarely dynamic, they show a snapshot of the content when opened, and

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-05-27 Thread Angus Robertson - Magenta Systems Ltd
This subject doesn't deserve not even a reply?! I'm the only one able to fix things here at the moment, and I have a lot of other priorities. But I'll put it on my list for next month. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Best multithread approach to build http server

2014-05-30 Thread Angus Robertson - Magenta Systems Ltd
I'm building a service application based on THttpServer. For each OnGetDocument event I'm building and returning XML. The XML building process can be lengthy and I'd like to be able to handle other requests while one is being processed. Look at the the FTP server component. This is fully

Re: [twsocket] Threads

2014-06-04 Thread Angus Robertson - Magenta Systems Ltd
Do the OnSessionConnected, OnSessionClosed and OnDataAvailable events run in their own threads? No, TWSocket does not use any threads. Windows does internally, but that is transparent to a Delphi application. All events are called in the context of the thread in which the component is

[twsocket] TnEmulVT updated

2014-06-05 Thread Angus Robertson - Magenta Systems Ltd
Thanks for DrJohn for changes to OverbyteIcsTnEmulVT and OverbyteIcsEmulVT, as follows: May 28, 2014 v8.02 DrJohn fixed problem with (border) colours AutoResize property added with improved font resizing SoundOn property added GetScreenText function added Fixed bug during connect if control not

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-06-05 Thread Angus Robertson - Magenta Systems Ltd
The 307 and 308 redirects must maintain the same request method, and not revert to GET as with other redirects. This change is now in SVN, although there is a lot of online debate over many years about whether this change is allowed by the RFCs, at least without user interaction, different

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-06-06 Thread Angus Robertson - Magenta Systems Ltd
My understanding is that, when redirecting, the request method should revert to GET, for any method (POST, PUT, DELETE,...) and only maintain it when the redirect is of type 307 or 308. From which RFC (and section)? The way you have code it only works for POST. Yes, should HEAD revert to

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-06-07 Thread Angus Robertson - Magenta Systems Ltd
Not easy to get it from the RFCs or from the online discussions, but I've now checked how Firefox and Chrome are implementing it Exactly, each browser has implemented redirection in different ways for different requests, there is no general consensus If you can just check MSIE as well,

Re: [twsocket] UDP Listener

2014-06-07 Thread Angus Robertson - Magenta Systems Ltd
I am trying to create a UDP listener for Windows platform and was wondering, is it possible to receive UDP messages sent via Internet browsers from my UDP listener which is built with ICS? If there are problems or something I should know, please let me know! Creating a UDP listener takes

Re: [twsocket] Nagios like communication

2014-06-09 Thread Angus Robertson - Magenta Systems Ltd
I would like to implement a new feature into one of my applications where I can ask for a status through a (VPN)network connection, kind of like Nagios does. Status of what? Or maybe even build functionality into it so that it can be queried by Nagios. Query what? Nagios is a Linux

Re: [twsocket] Nagios like communication

2014-06-10 Thread Angus Robertson - Magenta Systems Ltd
The linchpin of all this is, that the program itself is up and running, doesn't hang and that it can still response. Otherwise, days can go by and no data is recorded. I hope your application is already a Windows service, you can then make use of the various service restart options if it

[twsocket] Future improvements for HTTP components?

2014-06-25 Thread Angus Robertson - Magenta Systems Ltd
This message is intended to start a dialog about future improvements to ICS components for Windows, in particular the HTTP client and server components where the world is moving ahead of us. Currently, new features tend to get added as needed by the main ICS developers for specific projects, for

Re: [twsocket] Nagios like communication

2014-06-25 Thread Angus Robertson - Magenta Systems Ltd
which component can be used as client to talk to the above server component. Building an http server into my program sounds good but is way too much for what I need. Look at free Magenta Systems IP Log Streaming Component at: http://www.magsys.co.uk/delphi/magics.asp which is a high level

Re: [twsocket] Future improvements for HTTP components?

2014-06-25 Thread Angus Robertson - Magenta Systems Ltd
basic http server that handles requests but process them on different and configurable number of threads. Anyone? Have you looked at the existing threaded components and demos: OverbyteIcsWSocketTS.pas - Winsock component for building multithreaded servers OverbyteIcsThrdSrv.dpr - Basic

Re: [twsocket] Nagios like communication

2014-06-26 Thread Angus Robertson - Magenta Systems Ltd
So, if I want to make the conversation back and forth like asking for a status and waiting for a reply, I would need two instances of the component to handle both directions of the communication? No, once a connection is made you have two-way communication, use the SendLogLine method to

Re: [twsocket] file size in tftpclient server

2014-06-26 Thread Angus Robertson - Magenta Systems Ltd
how to get the size of the file will be downloaded from the ftp server to make a progressbar in onProgress event? There are several ways of finding the size of a file, depending on which commands the FTP server supports. The easiest is MLST which gets size and time stamp for a single file, if

Re: [twsocket] Openssl-1.0.1g

2014-07-08 Thread Angus Robertson - Magenta Systems Ltd
Is it possible to get ICS working with 1.0.1h? The overnight ICS v8 zip has been updated to allow OpenSSL 1.0.1h to be used. However, we still don't have our own compiled OpenSSL DLLs, instead I have tested it briefly with the Win32 DLLs from: http://slproweb.com/products/Win32OpenSSL.html

[twsocket] Magenta Systems IP Log Streaming Component

2014-07-08 Thread Angus Robertson - Magenta Systems Ltd
Version 2.0 of the Magenta Systems IP Log Streaming Component may now be freely downloaded from: http://www.magsys.co.uk/delphi/magics.asp Version 2.0 adds IPv6 and SSL support including certificate checking using a PEM bundle file or Windows Certificate Store, adds host name support for

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-07-09 Thread Angus Robertson - Magenta Systems Ltd
Not easy to get it from the RFCs or from the online discussions, Can we please make a final decision if further redirect changes are needed now, just doing other updates. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] OpenSSL 1.0.1h binaries available

2014-07-14 Thread Angus Robertson - Magenta Systems Ltd
Thanks to RTT p...@sapo.pt for recompiling the OpenSSL 1.0.1h binaries so there are no external dependencies with Microsoft runtime libraries. 1.0.1h contains more security fixes, but none as urgent as 1.0.1g. These need to be used with the latest ICS v8 from the SVN, which has been updated to

Re: [twsocket] ICS web client and server new features

2014-07-18 Thread Angus Robertson - Magenta Systems Ltd
The nightly zips at: http://www.magsys.co.uk/delphi/magics.asp have now been correctly updated with the latest ICS v8 changes. Due to the overbyte.be DNS failure the nightly job was not checking out the latest version from the repository so the older version was being zipped nightly instead.

Re: [twsocket] Set Connection Header with HttpAppServer

2014-07-30 Thread Angus Robertson - Magenta Systems Ltd
is it possible to set the returning header from an HttpAppServer to close (instead of Keep-Alive)? How can I do this? You can add any headers you like when calling AnswerPage for TUrlHandler class. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] OpenSSL 1.0.1h binaries available

2014-08-01 Thread Angus Robertson - Magenta Systems Ltd
The Overbyte web sites have finally returned to life, so the new OpenSSL binaries are also available on the wiki download page: http://wiki.overbyte.be/wiki/index.php/ICS_Download Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] SSL

2014-08-15 Thread Angus Robertson - Magenta Systems Ltd
Will ICS support SChannel native Windows SSL? Then we could no longer need OpenSSL. No, ICS can not use native Windows SSL, only OpenSSL. Windows does have something called Secure Channel, aka SChannel, that supports SSL/TLS, but I can only find some general descriptions about it in MSDN,

[twsocket] OT: Buffer Overflow in VCL Bitmap Processing Code

2014-08-22 Thread Angus Robertson - Magenta Systems Ltd
Because Embarcadero is still trying to get it's forums and newsgroups running after two weeks downtime, some may have missed a security vulnerability in the VCL graphics unit processing bitmaps: http://blog.marcocantu.com/blog/2014_august_buffer_overflow_bitmap.html The bug needs a two line fix

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Angus Robertson - Magenta Systems Ltd
For a current project I need to build an HTTP server to which data can be POSTed, so I build one using OverbyteIcsWebServ.dpr as an example. I ran into stability problems, and starting slimming my code down to isolate the problem. Please try uploading your file to one of my public

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Angus Robertson - Magenta Systems Ltd
Thanks for the idea, can I upload files from software instead of using the webpage? This is explained when you read the web page. 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

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Angus Robertson - Magenta Systems Ltd
No, I can't reproduce using that URL, I'm not really sure what triggers the situation I have seen cases where a bug that shows up during testing on a fast LAN is never reproduced on real world servers and networks. Try adding bandwidth limiting to your client to slow down the speed on the

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Angus Robertson - Magenta Systems Ltd
No, I can't reproduce using that URL You did not succeed in saving any files on the server, because my application ignores all upload file names with file path delimiters. It will be a better test if you strip off the path and just leave the XML file name. 12:42:59 Request:

Re: [twsocket] issues with POSTing data to ICS HTTP server (reproducible with ICS HTTP server demo)

2014-09-04 Thread Angus Robertson - Magenta Systems Ltd
I've tried a number of times with this url http://www1.telecom-tariffs.co.uk/testing/uploadfile.htm?FileName=me rijn.test Can you please confirm if the upload went ok? Received Post Data File, Size 4,550, Content Type: application/binary FileName: merijn.test/cgi-bin/FileUpload/books.xml

Re: [twsocket] Simple Example to receive POST Data with THttpAppServer?

2014-09-09 Thread Angus Robertson - Magenta Systems Ltd
yes, I've looked at the example. But if I try to implement this to my application the OnPostedData-Event is never raised. I don't know why :-(. Is there a Handler for POST-Data, that I have to register first? You do need an AddPostHandler page handler for each POST page you need, maybe as

Re: [twsocket] TWSocketServer in depdicated thread

2014-09-10 Thread Angus Robertson - Magenta Systems Ltd
I'm trying to make TWSocketServer pworking in a separate thread Why not start with TWSocketThrdServer? Look at the sample OverbyteIcsThrdSrvV3.dpr which uses it. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] TWSocketServer in depdicated thread

2014-09-11 Thread Angus Robertson - Magenta Systems Ltd
However the question is: why events are not raised in case of moving TWSocketServer out of main application thread? Because you need a message handler in the thread. There are lots of samples that show how to use threads. Angus -- To unsubscribe or change your settings for TWSocket

[twsocket] Testing mailing list

2014-09-24 Thread Angus Robertson - Magenta Systems Ltd
Not seen a new message here for two weeks, and had a report posts are not working, see if this message appears. 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

Re: [twsocket] Problem with Webserver Session

2014-10-01 Thread Angus Robertson - Magenta Systems Ltd
I try to implement a Session to my Webserver like in the Wiki, but ValidateSession always returns a wrong value. The application is implemented as a Service. What could be wrong? Sessions needs cookies, are sure the server is sending a session cookie for a new session and the client is

Re: [twsocket] Problem with Webserver Session

2014-10-01 Thread Angus Robertson - Magenta Systems Ltd
I think there is something wrong with setting/recognizing the session cookie because every time I execute the function above a new session will be generated. I got another ICS web server app running and there a cookie is set correctly. In this app the cookie is not set and I don't know why:

Re: [twsocket] HTTP server not receiving data from PUT requests - bug report fix

2014-10-01 Thread Angus Robertson - Magenta Systems Ltd
I've noticed that HTTP server (OverbyteIcsHttpSrv) is not processing PUT requests correctly. PUT requests can have data attached (just like POST) but this data never makes it to the program because OnPostedData is never called. Thanks, will update SVN, but not this week. Angus -- To

Re: [twsocket] Problem with Webserver Session

2014-10-01 Thread Angus Robertson - Magenta Systems Ltd
is there example code where I can see the Session handling via URL and SessionID? The only sample code using web sessions is the web application server, OverbyteIcsWebAppServer.dpr Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Help with sending mail through gmail please

2014-10-06 Thread Angus Robertson - Magenta Systems Ltd
I am playing with the OverbyteIcsSslMailSend project (from Ver 7) to see if I can send a message from gmail. Unfortunately I get an error 11004 every time I click 'connect' The V8 demo works fine for me with Gmail, although it defaults to no SSL so you must change 'SSL Type' to Explicit

Re: [twsocket] Help with sending mail through gmail please

2014-10-06 Thread Angus Robertson - Magenta Systems Ltd
However I am now getting the error RequestDone Rq=12 Error=EIcsLibeayException Unsupported OpenSSL version (0x0090600F) ! Supported versions are 0x0090805F - 0x10AF FileName: C:\Windows\system32\LIBEAY32.DLL The general rule with ICS SSL applications is always put the two OpenSSL DLLs

Re: [twsocket] Help with sending mail through gmail please

2014-10-06 Thread Angus Robertson - Magenta Systems Ltd
Ok, thank you for the advice. To be honest I downloaded CIS ver 7 because I couldn't really understand how to get ver 8. You just download the ICSV8 snapshot zip from: http://wiki.overbyte.be/wiki/index.php/ICS_Download The main ICS web site is updated once or twice a year, the download

Re: [twsocket] Help with sending mail through gmail please

2014-10-06 Thread Angus Robertson - Magenta Systems Ltd
see how much I can remove to get just the core functionality and minimum property seting needed to simply automatically send a emailed newletter. Please do look at the Mail Queue Component I mentioned, the demo is actually a cut down version of a mailing list application I wrote 15 years ago

Re: [twsocket] Help with sending mail through gmail please

2014-10-06 Thread Angus Robertson - Magenta Systems Ltd
OK, will do, that sounds like just what I need as each month the system will have to send about 6 emails, each with about 90 bcc in order to send an email with a 1 Mb attachment to around 550 people max without falling foul of gmails limits. One reason I wrote the mailer in the first

Re: [twsocket] Help with sending mail through gmail please

2014-10-07 Thread Angus Robertson - Magenta Systems Ltd
The .exe in the zip runs ok but no matter which host and corresponding user/password I use it always reports Can Not Open Mail Server: name of the mail server:25 - 426 Timeout Without SSL, you won't be able to connect to Gmail, see below. Just tested the original binary, all I did was

Re: [twsocket] Help with sending mail through gmail please

2014-10-07 Thread Angus Robertson - Magenta Systems Ltd
I agree with Angus, you would be better off to send the e-mails individually to the recipients' mail servers. My main point was it's better to send individually addressed emails, than bulk BCC, they are less likely to be intercepted as spam, even if it takes longer to do so. I did mention

Re: [twsocket] TWSocketServer listen connections

2014-10-07 Thread Angus Robertson - Magenta Systems Ltd
I do not want to close the connection, and not destroy it, must leave all connected clients and access them when needed to send data and information, I do not need to use Cliente.Free? it will not overload the memory? No, your Cliente is simply a pointer to the real client in the component,

Re: [twsocket] What is the correct format for friendly FROM address in TSslSmtpCli?

2014-10-08 Thread Angus Robertson - Magenta Systems Ltd
I've tried several combinations (Using delphi with TSslSmtpCli) sending both through gmail and through my own ISP's server to both hotmail and a pop3 address. I can't seem to get the right 'from' email to show up when going through gmail. It keeps showing the real gmail account email

Re: [twsocket] HTTP server not receiving data from PUT requests - bug report fix

2014-10-09 Thread Angus Robertson - Magenta Systems Ltd
I've noticed that HTTP server (OverbyteIcsHttpSrv) is not processing PUT requests correctly. The patch below fixes the problem. Don't know which version you were using, but the patch refers to obsolete code, PUT handling was added in July. Jul 17 2014 V8.08 Angus Added HTTP/1.1 methods

Re: [twsocket] Use of TSslContext in sending SSL email (quick question)n)

2014-10-10 Thread Angus Robertson - Magenta Systems Ltd
Is it necessary for me to create a separate TSslContext each time I create a new TSslSmtpCliWithFEhloCount No, an SslContext set-up for SSL client or a single SSL server certificate can be shared by multiple socket components. The only issue is in SSL servers using MultiListen, where

[twsocket] OpenSSL and Poodle exploit

2014-10-20 Thread Angus Robertson - Magenta Systems Ltd
There has been recent press about an SSL server exploit called Poodle, which only effect SSLv3, not the more recent TLS 1.x protocols. Disabling SSLv3 in servers can be done by setting: SslContext.SslVersionMethod := sslV23_SERVER; SslContext.SslOptions := [sslOpt_NO_SSLv2, sslOpt_NO_SSLv3,

Re: [twsocket] missing WPARAM casts

2014-11-03 Thread Angus Robertson - Magenta Systems Ltd
In some cases, FHSocket is not cast into WPARAM in OverbyteIcsWSocket which can cause an exception. Attached patch fixes this problem and also adds missing WSocket_setsockopt overload accepting integer 'optval'. Attachments to the list are stripped. Please email me privately the

Re: [twsocket] OpenSSL and Poodle exploit

2014-11-07 Thread Angus Robertson - Magenta Systems Ltd
I see you speak of fixing web servers in regard to the poodle exploit. Is there any problem with clients? I see mine are set to sslv23. I believe that was the default. Should I change this and if so, to what? The issue with clients is they usually need to access a wide range of servers,

Re: [twsocket] Patch to include RTL namespaces support

2014-11-08 Thread Angus Robertson - Magenta Systems Ltd
I created a patch to add namespaces to RTL units. Thanks, patch applied successfully to my local SVN, now need to test with a few compilers and make sure all FMX and Windows packages can be rebuilt, will take a few days. Angus -- To unsubscribe or change your settings for TWSocket mailing

[twsocket] OT: Let's Encrypt free SSL/TLS certificates

2014-11-19 Thread Angus Robertson - Magenta Systems Ltd
From next summer, it will be possible for applications to automatically request and install free SSL/TLS web domain certificates, using infrastructure from Let's Encrypt certificate authority: https://www.letsencrypt.org/ Essentially, the client runs an application that creates the SSL private

Re: [twsocket] IcsLogger

2014-11-23 Thread Angus Robertson - Magenta Systems Ltd
I'm trying to use the IcsLogger to trace down an SSL problem, but I'm only getting this one line in the log file: 15:21:49:633 InitCtx OpenSSL version: OpenSSL 1.0.1i 6 Aug 2014 You also need to attach the logger to any socket or other components you are using, they should all have an

Re: [twsocket] IcsLogger

2014-11-26 Thread Angus Robertson - Magenta Systems Ltd
I have been unable to establish if ICS supports TLSv1.1 and TLSv1.2. I expect it does, but would appreciate your confirming this. Yes, OpenSSL supports TLSv1.1 and TLSv1.2, you should see this reported in the handshake completed event like: Secure connection with TLSv1.2, cipher AES128-SHA,

Re: [twsocket] Webserver problem

2014-12-02 Thread Angus Robertson - Magenta Systems Ltd
Am trying to make a basic webserver I got the basic pages showing up but am having trouble with tables and css how do I setup the webserver to support css and basic html like tables and div? The ICS web server simply sends HTML pages you create to the remote browser, it has no knowledge of

Re: [twsocket] FTP Error

2014-12-13 Thread Angus Robertson - Magenta Systems Ltd
I have one client that is always getting problems with the FTP transfers we are performing. Any clues as to what could cause the error at 18:10:37.544 It looks like you are opening a second FTP control connection to a different IP address before closing the first connection. Angus -- To

  1   2   3   4   5   6   >