Re: [twsocket] Very Strange PHP Proxying Issue

2011-05-04 Thread Angus Robertson - Magenta Systems Ltd
> Actually I tested it with our application If you publish the source of that application with build instructions, we will then be able to test it as well. Or add the funcionality to the web server component and demo, which is what we will have to do to test it. Angus -- To unsubscribe or cha

Re: [twsocket] FTP Server - Identify moment of Put file

2011-05-05 Thread Angus Robertson - Magenta Systems Ltd
> How to identify moment of uploaded file ? > I'd like to do some operations on file, which come from client OnStorSessionClosed triggers when PUT finishes, you need to check AError to see if it worked, then the Client parameter gives you access to the file details, ie Client.FilePath, Client.Data

Re: [twsocket] FTP Server - Identify moment of Put file

2011-05-06 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] FTP Server - Identify moment of Put file > *From:* Tomasz Maciejewski > *To:* ICS support mailing > *Date:* Fri, 6 May 2011 12:46:06 +0200 > Is possible to send file from server to > client without request from client ? Not really, the FTP server only ever responds to

Re: [twsocket] FTP Server - Identify moment of Put file

2011-05-08 Thread Angus Robertson - Magenta Systems Ltd
> Synchronous function "Put" always return false, but file is > succesfully transfered to server... > I don't know why... Please, help :) I assume you are now referring to the FTP client software. You need to check StatusCode for the FTP server response code, 200 for OK, with the full textual s

Re: [twsocket] Possible CliId duplication

2011-05-13 Thread Angus Robertson - Magenta Systems Ltd
> "if FClientNum >= $7F then" > currently it wraps around after 8,388,607 That is probably my bug, missed an F. Will be fixed before you manage to reproduce 8 million FTP connections in a single session. Angus -- To unsubscribe or change your settings for TWSocket mailing list please go

Re: [twsocket] Questions on HtmlSmtpClient and SslSmtpClient

2011-05-15 Thread Angus Robertson - Magenta Systems Ltd
> Unfortunately there doesn't exist a TSslHtmlSmtpCli out of the box. > However with a simple change to OverbyteIcsSmtpProt.pas it's > possible to add SSL support to THtmlSmtpCli: You can also look at my Mail Queue Component: Magenta Systems Mail Queue Component has two main benefits over a s

Re: [twsocket] Zlibhigh compression function with content length and offset

2011-05-19 Thread Angus Robertson - Magenta Systems Ltd
> The function I posted earlier has just been tested and failed due to > ICS/ZLib issues. Exactly what problems arose in testing? 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

[twsocket] Creatively annoying a host

2011-07-06 Thread Angus Robertson - Magenta Systems Ltd
My various web servers suffer regular attacks looking for exploits, the current one is looking for php, 100 odd URLs at a time including: GET //dbadmin/scripts/setup.php GET //phpMyAdmin-2.5.5-rc1/scripts/setup.php GET //mysqlmanager/scripts/setup.php GET /muieblackcat In my ICS web server, I was

Re: [twsocket] Creatively annoying a host

2011-07-07 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] Creatively annoying a host > > I could leave the connection open without sending a response? > > > Just delay the answer for a couple second, this will slow down the > probing. I think keeping the client connection open as long as possible, sending random HTTP headers

Re: [twsocket] Hang in TIcsWndControl.ProcessMessages

2011-07-13 Thread Angus Robertson - Magenta Systems Ltd
> Looks like you try to workaround the asynchronous nature of TWSocket > which were a bad idea. Where do you call this and what do you want > to achieve? Waiting for all sockets to close cleanly may be necessary before terminating an application, to ensure continuously streamed data is not lost.

Re: [twsocket] Hang in TIcsWndControl.ProcessMessages

2011-07-13 Thread Angus Robertson - Magenta Systems Ltd
> > Waiting for all sockets to close cleanly may be necessary before > > terminating an application, to ensure continuously streamed data > > is not lost. > > I do not see a reason why one must wait in a loop processing > messages with calls to sleep()in order to achieve that, that's > often a

[twsocket] ICS and Delphi XE2

2011-08-03 Thread Angus Robertson - Magenta Systems Ltd
Embarcadero recently announced that RAD Studio XE2 will be launched in the next few weeks, the main XE2 information page is currently: http://www.embarcadero.com/world-tour The NDA on vendors has been relaxed so we can now talk about some new XE2 features and components for XE2. This note briefl

Re: [twsocket] ICS and Delphi XE2

2011-08-03 Thread Angus Robertson - Magenta Systems Ltd
> I don't understand why Embarcado should not use a similar approach and > includes a cross-platform event-system wrapper in FireMonkey. It > would make the life easier not only for ICS developers, I suppose. There may be such an event system in FireMonkey, don't actually know. But supporting IC

Re: [twsocket] ICS and Delphi XE2

2011-08-03 Thread Angus Robertson - Magenta Systems Ltd
> There may be such an event system in FireMonkey, don't actually > know. It seems Embarcadero bought KSDev earlier this year: http://www.ksdev.com/ and the feature page of VGScene may provide some hints about the capabilies of FireMonkey, although Embarcadero may have changed everything! ht

Re: [twsocket] [OT] Nice forum engine based on the mailing list

2011-08-05 Thread Angus Robertson - Magenta Systems Ltd
> There are mail readers available capable to sort mails by threads > AFAIK. Do you mean people actually use email readers that don't sort by subjects and replies? > My personal favourites are: > #1 Newsgroup > #2 Mailinglist My 17 year old client does both, and private conferencing: http:/

Re: [twsocket] [OT] Nice forum engine based on the mailing list

2011-08-06 Thread Angus Robertson - Magenta Systems Ltd
> > My 17 year old client does both, and private conferencing: > > > > http://cixonline.com/read_offline.asp > > Looks nice, however I prefer to not pay for something that should > be part of the OS. The software is actually free, it's the conferencing server that costs, and that is now 25 years

Re: [twsocket] HTTP Client POST under WinXPSP3 issue

2011-08-15 Thread Angus Robertson - Magenta Systems Ltd
> We have an important issue with HTTPClient: Only under WinXP, when > I POST > data to an ICS server, it returns StatusCode = 0 and empty > RcvdStream! Has anybody seen this behavior before? No, my public web site is using the latest ICS v7 snapshot and POST works fine from Windows XP with MSI

Re: [twsocket] multithread server

2011-08-18 Thread Angus Robertson - Magenta Systems Ltd
> there are about 150 clients (in average) connected at the same > time. sometimes program hang after 15 minutes of running, sometimes > after several hours. I've had ICS servers running for several months without hanging, but not with as many clients. Is the client an ICS application, or som

Re: [twsocket] ICS v7 for XE2 online now

2011-09-02 Thread Angus Robertson - Magenta Systems Ltd
> As you probably already noticed XE2 RTMed yesterday. And ICS v7 now supports Delphi 64-bit projects, but there is no C++ 64-bit compiler yet, that's planned for the next release. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi

Re: [twsocket] Is it possible to lose an accept select message?

2011-09-05 Thread Angus Robertson - Magenta Systems Ltd
> No, if you have an unhandled exception in one of the events then the > OnBGException is fired. The latest ICS v7 has improved exception handling to give more control over how background exceptions are handled. The last thing you want on a unattended server is a modal dialog. A similar proble

[twsocket] OT: Mustangpeak Virtual Shell Tools

2011-09-06 Thread Angus Robertson - Magenta Systems Ltd
Has anyone used Virtual Shell Tools from Mustangpeak? The Mustangpeak site has disappeared and Jim the author has abandoned everything, although the code has all been left in an SVN repository. Development seems to have stopped around 2007, although the excellent UltraExplorer tool that I used

Re: [twsocket] OT: Mustangpeak Virtual Shell Tools

2011-09-06 Thread Angus Robertson - Magenta Systems Ltd
> Unfortunately VirtualTree exists in multiple repositories / > flavours with different bugs. I'll still have to port VST and > VT to 64-bit. Is VT still supported, not updated my one project using it for a while? VST has quite a lot of assembler, but often for widestring functions that could prob

Re: [twsocket] DLL implementation advice (or example)...

2011-09-09 Thread Angus Robertson - Magenta Systems Ltd
> I'm not a beginner with Delphi but I'm definitely not an expert > either so I'm really struggling to create a DLL-based WSocket > client that does what I need. I wrote an ActiveX DLL about 10 years ago that's still used on my web site today, doing a reverse DNS look-up on the remote IP address

Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Angus Robertson - Magenta Systems Ltd
> Just migrating and I get Delphi personality not found error. > Best Regards, I tested RAD Studio XE2 with Delphi and C++ installed together, C++ compiled find. Not testing with C++ alone. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elist

Re: [twsocket] Isn't it possible to compile ICS with BCB XE2 Pro?

2011-09-12 Thread Angus Robertson - Magenta Systems Ltd
> Seems like a BCBXE2 bug: > https://forums.embarcadero.com/thread.jspa?messageID=389837 > Too bad! Make sure you comment in that thread and report it in QC as well so Embarcadero knows you are suffering. Due to FireMonkey issue, there are apparently upgrades due each month for XE2, so it might

Re: [twsocket] HTTP 401 missing header line

2011-09-18 Thread Angus Robertson - Magenta Systems Ltd
> I'm trying to POST to a server that needs authentication. I expect > a 401 from the server with in the header something like: > WWW-Authenticate: Basic Realm=/something This is a pure guess, but maybe the WWW-Authenticate header is only returned for GET requests, with POST you are supposed to k

Re: [twsocket] HTTP 401 missing header line

2011-09-18 Thread Angus Robertson - Magenta Systems Ltd
> The authentication is an argument in the POST command. When it is > invalid or missing the server returns a 401 with > the missing header line. Is that a bug in the server? The two SMS providers I'm testing provide a range of error messages including bad authentication or no credit, but not 401.

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread Angus Robertson - Magenta Systems Ltd
> With software supplied with the device, from a Windows PC connected > to the same LAN as the TEMPerLAN, I can "send a command" to it. If > the command is BB 82, I get back a short string of ASCII with some > data from the device. > device ipaddress:192.168.0.241 > device netmask:255.255.255.0

[twsocket] SocketRcvBufSize for Listen sockets

2011-09-22 Thread Angus Robertson - Magenta Systems Ltd
In WSocket, SocketRcvBufSize and SocketSndBufSize are currently only set in Dup and Connect, not in Listen. For UDP, this means SetSocketRcvBufSize and SetSocketSndBufSize always get called even if the buffer is already the correct size, since it's not checked. I'm setting a larger buffer so

Re: [twsocket] SocketRcvBufSize for Listen sockets

2011-09-23 Thread Angus Robertson - Magenta Systems Ltd
> > For UDP, this means SetSocketRcvBufSize and SetSocketSndBufSize > > always get called even if the buffer is already the correct size, > > since it's not checked. > > Can you help me? I currently don't find the location in source? > Where does it happen? I meant in my program, since with Li

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread Angus Robertson - Magenta Systems Ltd
> Not a WEB server, not a TELNET server, but still a > server, if only a simple one. > > HttpTst, and the program I derived from it, as I understand things, > sends a "proper" HTTP "Get" to the system of your choice. Your box is almost certainly both a web server (how you got and set configura

Re: [twsocket] ICS Delphi 7 installation error

2011-09-26 Thread Angus Robertson - Magenta Systems Ltd
> I'm a complete newbie to Delphi. I have installed yesterday from > the embarcadero website the Delphi XE2 trial version first and want > to add ICS v7 to it. > As told in the readme file I have opened the OverbyteIcsD7Run.dpk You are confusing Delphi 7 and ICS v7. The projects to install I

Re: [twsocket] Fix for content encoding bug

2011-09-29 Thread Angus Robertson - Magenta Systems Ltd
The URL you posted is some XML file, nothing to do with ICS. It displays as XML in Firefox which states it is not a web page. If you attached a patch file to the original email, it would have been dumped by the mailing list since otherwise hundreds of people would have been spammed with it. Yo

Re: [twsocket] How do they accomplish Mbps of speed on single socket between contin

2011-09-29 Thread Angus Robertson - Magenta Systems Ltd
> From Canada to here, I can download at speed of 10Mbps with IIS and > with ICS only 500kbps. IIS is a web server, it does not download anything. TCP/IP download speed depends upon TCP buffer size, what does SocketRcvBufSize say? Angus -- To unsubscribe or change your settings for TWSock

Re: [twsocket] How do they accomplish Mbps of speed on single socket between co

2011-09-29 Thread Angus Robertson - Magenta Systems Ltd
> I mean I have on my server in Canada IIS and our ICS server. When I > download from there with high latency and high bandwidth, On the same physical hardware with different ports or IPs? IIS runs as a kernel driver, so is more efficient than Windows applications. >I had read that I need to

Re: [twsocket] How do they accomplish Mbps of speed on single socket between co

2011-09-29 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] How do they accomplish Mbps of speed on > With your advice, local-to-local I saw speeds of 650MByte per > sec Which will only be possible on a 10GB LAN which is very rare, you are confusing bytes per second with bits per second. The best speed on a standard 1GB LAN i

Re: [twsocket] How do they accomplish Mbps of speed on single socket between co

2011-09-30 Thread Angus Robertson - Magenta Systems Ltd
> I am not confusing bytes with bits! Our web stress tester displays > stats in BYTEs: www.fastream.com/webstresstester.php So how fast are the LAN ports on your PC and server? Or are you simply testing both on the same PC and ignoring a LAN completely, which is hardly a real life user test.

Re: [twsocket] ICS Delphi 7 installation error

2011-10-04 Thread Angus Robertson - Magenta Systems Ltd
> P.S.: I already sent this email one time, but had no reply in the > following days, so I try it another time. Please anyone help me ! You have sent this same email at least five times, and had at least three replies, all of which have ignored. Look back in the archive to see the replies you

Re: [twsocket] THttpCli bug with no-content-length and no chuncked encoding

2011-10-04 Thread Angus Robertson - Magenta Systems Ltd
> I wrote about a similar bug, but got no response from the > administration. It is on my list of things to investigate this week, but paying work has to come before minor bug fixes like this. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.eli

Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-04 Thread Angus Robertson - Magenta Systems Ltd
> To elaborate: You need a page with no content-length and no chunked > encoding that returns 401 to see it. And the URL of that example page is what? Or are you expecting someone to create a badly formatted example page for you? Angus -- To unsubscribe or change your settings for TWSocket m

Re: [twsocket] THttpCli bug with no-content-length and no chunckedencoding

2011-10-05 Thread Angus Robertson - Magenta Systems Ltd
> Actually I tested with our Linksys routers admin page... So how to do you propose the fix you are requesting is tested? Do many people use ICS to access a router admin page without the correct password, I'm surprised it gave a 401 error and not just another login window. My two Linksys rout

Re: [twsocket] Fix for content encoding bug

2011-10-06 Thread Angus Robertson - Magenta Systems Ltd
> Http Cli not decode the gzip data from this url (specific header, > does not work FContentCodingHnd.Complete). > Try example - http://vkmusic.citynov.ru/overbyte/HttpCliBug.dpr Thanks for the fix, this is now tested and SVN updated, the nightly zip will be available tomorrow. Content decompre

Re: [twsocket] ICS and FireMonkey

2011-10-12 Thread Angus Robertson - Magenta Systems Ltd
> Interesting screenshot: I think we'll have to redesign that dialog for an IPhone 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.overbyte.be

Re: [twsocket] Can this be made?

2011-10-16 Thread Angus Robertson - Magenta Systems Ltd
> I wonder if we could write the data directly to TWSocket bufferlist > instead of FDocBuf in THttpServer so that there is no longer double > (and in the case of SSL triple) copying. I'm currently looking at THttpServer performance improvements, I doubled the speed on Friday by increasing buffers

Re: [twsocket] Can this be made?

2011-10-17 Thread Angus Robertson - Magenta Systems Ltd
> What I want to know is we already have the cache memory stream > which we read from and there is multiple copying of data as > TMemoryStream->FDocBuf->ICS> internal buffer->Winsock. Most static files are currently served using TFileStream which is unbuffered with no cache, so reading large am

Re: [twsocket] HttpServer and Server-push?

2011-10-18 Thread Angus Robertson - Magenta Systems Ltd
> I then need to be able to send HTTP messages (xml documents) back > from the server to the client periodically In the GetDocument event, for your specific path/URL you need to set: Flags := hgWillSendMySelf; RemoteClient.KeepAlive = TRUE; so the server does nothing more but leaves the connec

Re: [twsocket] HttpServer and Server-push?

2011-10-18 Thread Angus Robertson - Magenta Systems Ltd
> So, do I need to do the same for PostDocument? The webserver example > uses PostDocument and PostedData. Yes, you have to handle the different methods yourself, although HEAD and GET can use the same handle, just don't send any data with HEAD. > The PostDocument event in the demo requires the F

[twsocket] HttpServer performance improvement

2011-10-19 Thread Angus Robertson - Magenta Systems Ltd
SVN has been updated with a new THttpServer: Oct 18, 2011 V7.40 Angus GET performance improvements, use TBufferedFileStream, SndBlkSize default is 8192 and dynamically increased to new property MaxBlkSize if stream is larger than SndBlkSize. SocketSndBufSize also increased to SndBlkSize. Setting

Re: [twsocket] HttpServer and Server-push?

2011-10-19 Thread Angus Robertson - Magenta Systems Ltd
> Does anyone have a working example of this I could look at? An example of what, a web server? Or use of a timer? I actually added a timer to my own web server yesterday, to delay sending a 404 error by 30 seconds to any hackers that try and open a PHP page, to slow down their probing. Ang

Re: [twsocket] HttpServer and Server-push?

2011-10-19 Thread Angus Robertson - Magenta Systems Ltd
> I'm still using the WebServer demo (although much cut down) to try > and Add in the changes you suggested. That's fine. > i.e. in the PostDocument > Flags := hgAcceptData; <--- PostedData wont fire unless this is > set. > ClientCnx.KeepAlive := True; What about the code to send the XM

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-20 Thread Angus Robertson - Magenta Systems Ltd
> I also find myself with the need to edit the DocumentToContentType > function, each time I update my local copy of ICS. > This has not being addressed yet I get annoyed every time I look at the list of MIME types as well, and have added to it myself in the past. I will do something better in

Re: [twsocket] TSslWSocketClient & Download

2011-10-20 Thread Angus Robertson - Magenta Systems Ltd
> I am having server and client built with TSslWSocketClient & Server. > I would like to to make client to download bunch of files from the > server when it gets the command from the server. > The command will be a list of the files to download. > > Is this possible? if yes, any ideas about how t

Re: [twsocket] HttpServer and Server-push?

2011-10-20 Thread Angus Robertson - Magenta Systems Ltd
> Setting the flag to hgWillSendMySelf prevents the PostedData event > from firing. Yes, that related to GET, you use hgAcceptData for POST. > > I presume there is another way to get to the posted data apart from > the method demonstrated in the webserver demo? Not looked at what the demo doe

Re: [twsocket] HttpServer and Server-push?

2011-10-21 Thread Angus Robertson - Magenta Systems Ltd
> I presume there is another way to get to the posted data apart from > the method demonstrated in the webserver demo? I have updated the web server demo with a new page delayed.html which is sent after a 10 second delay using a timer, as I previously explained you need to use. This is actually

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-21 Thread Angus Robertson - Magenta Systems Ltd
> I also find myself with the need to edit the DocumentToContentType > function, each time I update my local copy of ICS. SVN has been updated with a new OverbyteIcsHttpSrv: Oct 21, 2011 V7.41 Angus added OnHttpMimeContentType to allow custom ContentTypes to be supported for unusual file extensi

Re: [twsocket] Suggestion for DocumentToContentType

2011-10-22 Thread Angus Robertson - Magenta Systems Ltd
> Is there a reason you placed the calls in this sequences? I used that sequence so the main application can check if the MIME type is correct and then change it, ie just handle exceptions. The default MIME code is not exactly processor intensive. > why the String parameters are not declared

Re: [twsocket] HttpServer and Server-push?

2011-10-22 Thread Angus Robertson - Magenta Systems Ltd
> > I think we all need SPDY support: > > http://en.wikipedia.org/wiki/SPDY > > Interesting. Why don't you start the development ? Except that it not supported by Internet Explorer or official Firefox releases. Angus -- To unsubscribe or change your settings for TWSocket mailing list please go

Re: [twsocket] SMTP Server

2011-10-24 Thread Angus Robertson - Magenta Systems Ltd
You do not need to copy all the weekend messages to this list again when posting a simple request. > Do you think it could be possible to implement such a Smtp Server > using ICS Components? No, there are no ICS component to find the networking DNS servers. But you can do this with the Intern

Re: [twsocket] Socket connections like UDP-send-demo

2011-11-12 Thread Angus Robertson - Magenta Systems Ltd
> Set the Wsocket to listen, and use Wsocket.sendto command to send > data. In this way the Wsocket.port is the port to listen oin, and > with Wsocket.sendto I define the remote-applications port? SendTo is the standard way to send UDP packets, since there is no 'connection' as such. > My code

[twsocket] OT: THtmlViewer and Unicode

2011-11-19 Thread Angus Robertson - Magenta Systems Ltd
I'm trying to display Unicode POP3 email from TMimeDecodeEx with THtmlViewer v11, loading from a stream (with images from TSslHttpCli). I'm using D2007 with Tnt unicode components, and I can display all languages and charsets correctly with TTntRichEdit, but THtmlViewer is much harder (but better

Re: [twsocket] OT: THtmlViewer and Unicode

2011-11-19 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] OT: THtmlViewer and Unicode > *From:* "Arno Garrels" > *To:* "ICS support mailing" > *Date:* Sat, 19 Nov 2011 14:41:14 +0100 > > Angus Robertson - Magenta Systems Ltd wrote: > > I'm trying to display Unicode POP3

Re: [twsocket] Error when installing in XE2

2011-12-01 Thread Angus Robertson - Magenta Systems Ltd
> I am moving from D7 to XE2 and I am having problems installing ICS. > > When I try to build thr run element I get 2 errors > DCC Fatal Error OverbyteIcsDXeRun.dpk(70): That is a runtime package for XE, not for XE2. You appear to be installing an old version. You need the latest ICS v7 fr

Re: [twsocket] Setting additional Header fields depending on the mimetype in th

2011-12-13 Thread Angus Robertson - Magenta Systems Ltd
> Persistant headers are not usefull cause only certain Mimetype need > special headers > And I believe this is not just a special scenario for our apps. > According to Pagespeed and feedback from our users this relative > simple change (Date and Expire headers) improved the response times I'

Re: [twsocket] Setting additional Header fields depending on the mimetype in th

2011-12-13 Thread Angus Robertson - Magenta Systems Ltd
> If filling from the registry, better if the list is filled > dynamically when a not yet resolved file extension is requested. Except that scanning a single registry node or file, allocating memory for those nodes, and building indexes for them may be more efficient in one function. We don't w

Re: [twsocket] Setting additional Header fields depending on themimetype in th

2011-12-13 Thread Angus Robertson - Magenta Systems Ltd
> > We don't want to open and load a text file each > > time a new type is found. > True, that would be dog-slow. We need to think about Linux/OSX, this will be first use of registry access in ICS, I've already done some stuff to help decoding MIME email content. > > I agree that memory is neede

Re: [twsocket] Setting additional Header fields depending on the mimetype in th

2011-12-14 Thread Angus Robertson - Magenta Systems Ltd
> The implementation should be delegated to a handling class which > could be replaced easily by the developper. Yes, it will be a new class in the OverbyteIcsMimeUtils unit. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/m

Re: [twsocket] POP3Client

2011-12-14 Thread Angus Robertson - Magenta Systems Ltd
> I connect with the problems of POP3CLIENT. After setting the host > (= pop.191.biz), port (= 110), username and password, run > POP3Client.Connect. > Any command run later (POP3CLINET.User, POP3CLIENT.Pass ECTC.) Is > reported to me the following error: POP3 Component not ready. Why? You are

Re: [twsocket] POP3Client

2011-12-15 Thread Angus Robertson - Magenta Systems Ltd
> I is reported on connectsync RqType = 1 and error = 500. What does > this mean? Where is this reported? ConnectSync is a method that does not return any information. To open a POP3 mailbox, you normally use the OpenSync method which handled connect, logon and password, and test the Connecte

Re: [twsocket] POP3Client

2011-12-19 Thread Angus Robertson - Magenta Systems Ltd
> Why after I logged in, you have read the total number of messages > and found the first message I can not read the other messages (and > RetrSync MsgNun msgnum = + 1) and is reported to me the error > message: Timeout 426)? Can not answer since you have not explained what commands you are usi

Re: [twsocket] POP3Client

2011-12-19 Thread Angus Robertson - Magenta Systems Ltd
> What is the sequnza to read all the messages one at a time? This has already been clearly explained to you, in simple steps. Are you actually reading any of the replies to your questions? Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists

Re: [twsocket] Attached file

2012-01-16 Thread Angus Robertson - Magenta Systems Ltd
> How do I read and save a document attached to the email? I'm using > and SyncPop3Cli MimeDecodeEx. thanks Look at the OverbyteIcsMimeDemo which allows you to decode emails previously saved as text files. Basically, call the DecodeFileEx with the file name or DecodeStreamEx with the stream,

Re: [twsocket] Attached file

2012-01-16 Thread Angus Robertson - Magenta Systems Ltd
> My problem is to open the attached files and / or save them for > later use. The actual content for each of the attachments is in MimeDecodeEx.PartInfos [x].PartStream, so to save that to a file you simply use TFileStream methods, such as SaveToFile (FileName). Obviously you have to search the

Re: [twsocket] Attached file

2012-01-16 Thread Angus Robertson - Magenta Systems Ltd
> I apologize if I insist, but a concrete example will help me to > understand better. I get an email with the following three parts: MimeDecodeEx.PartInfos [2].PartStream.SaveToFile (MimeDecodeEx.PartInfos [2].PFileName); where 2 is the part number. Angus -- To unsubscribe or

[twsocket] IMAP4 support

2012-01-23 Thread Angus Robertson - Magenta Systems Ltd
Has anyone supported the IMAP4 email protocol using ICS? Don't really need the whole protocol, just sufficient commands to read email. It seems Goggle Mail has a limit to the number of items that POP3 will return, while IMAP4 returns the whole mailbox. Angus -- To unsubscribe or change yo

Re: [twsocket] IMAP4 support

2012-01-23 Thread Angus Robertson - Magenta Systems Ltd
> What do you mean it limits number of items via POP3? How many new > mails you have? Two of my clients have reported the problem, two years apart. The first I could ignore, and second means it's time to investigate. The first user complained only the first 600 messages could be read, and alw

Re: [twsocket] SyncPOP3Cli

2012-01-28 Thread Angus Robertson - Magenta Systems Ltd
> In my application reach more than 400 message per day. > I changed management and I had some problems. > First of all, can make the connection (opensync) and disconnect > (quitsync) once and manage to read the message with buttons > increasing the msgnum? When you open a POP3 mailbox, you get

Re: [twsocket] SITE EXEC issue

2012-01-30 Thread Angus Robertson - Magenta Systems Ltd
> when the client ftp was sending a SITE EXEC to the > server - now that command > never even gets received (and therefore never executes). This > smells of anti-virus or something but it is just the SITE EXEC that > does not work - everything else is fine. Unlikely to be anti-virus, more likel

Re: [twsocket] OnDataAvailable

2012-01-31 Thread Angus Robertson - Magenta Systems Ltd
> If the ClientSocket is closed, the callback for OnDataAvailable is > triggered and the missing Bytes are "received". This is the common sympton of missing line endings so the event is never called. But this would not explain why it's suddenly happening. I gave up on LineMode a long time ago,

Re: [twsocket] Reading e-mail

2012-02-01 Thread Angus Robertson - Magenta Systems Ltd
> SyncPOP3Cli.MsgNum := MsgNum; > SyncPOP3Cli.StatSync; How do you set the value of MsgNum? Why do you want to send it before asking for the total number of messages on the POP3 server? > SyncPOP3Cli.MsgNum := MsgNum; > SyncPOP3Cli.ListSync; Why do you ignore the result of the

Re: [twsocket] Reading e-mail

2012-02-02 Thread Angus Robertson - Magenta Systems Ltd
> reminder that many times and where IWEditMsgNum.Text is increased / > decreased with the values __of an array that contains all msgnum. > I can only read the first message. Why? Since you do not answer any of the questions you are asked, and only copy parts of your code with no explanation of

Re: [twsocket] Problems with TWSocket and Skype

2012-02-06 Thread Angus Robertson - Magenta Systems Ltd
> My application acts as a middleman between an external WiFi webcam > device relaying audio from its microphone to Skype's input audio > port and relaying audio from Skype's output audio port to the > webcam device's speaker. I am using ICS on both sides now. > TWSocket works just fine with

[twsocket] HttpServer improved MIME content support

2012-02-17 Thread Angus Robertson - Magenta Systems Ltd
SVN has been updated with a new TMimeTypesList component that is now used by THttpServer to allow more flexible MIME content support. Previously, THttpServer had a hard coded function with a limited number of MIME content types checked against common file extensions. This remains as the default

Re: [twsocket] Download manager

2012-02-25 Thread Angus Robertson - Magenta Systems Ltd
> If I have 5 or more different weblinks in my queue, I want do > download all these files. > Now I am using 5 components, but it doesn't seem very practical. > Basicly i have 5 of them called DL1, DL2, DL3 , DL4 and DL5. > > Is there an easier way to accomplish this? to use just like a > HTTP

Re: [twsocket] Download manager

2012-02-26 Thread Angus Robertson - Magenta Systems Ltd
> Working now with the THttpCLI component instead. > Got most of it to work now.. > But have no clue where the data is put when the download is > finished. There are several demo projects supplied with ICS that illustrate use of the HTTP client component, OverbyteIcsHttpGet is probably most appro

Re: [twsocket] Design principles of WebSockets server for ICS

2012-03-04 Thread Angus Robertson - Magenta Systems Ltd
> I think, this is only possible if the current THttpServer component > (actually, meaning with the THttpConnection component) is extended > and reworked. That is deriving new components from the existing ones > will require overriding of most important virtual methods and > copy-pasting > much o

Re: [twsocket] Design principles of WebSockets server for ICS

2012-03-04 Thread Angus Robertson - Magenta Systems Ltd
> Now that web browsers are implementing it > (http://en.wikipedia.org/wiki/WebSocket#Browser_support), it would > be nice to have support for it from ICS too. OK, so this is just server push under another name. To implement either the client or server using ICS, we need the opposing client a

Re: [twsocket] Using Unicode in HdrTo of TSmtpCli component

2012-03-09 Thread Angus Robertson - Magenta Systems Ltd
> Would it also work if I would set Allow8BitChars to TRUE, Charset to > "UTF-8" and manually encode all string properties like "HdrTo", > "HdrSubject" and "MailMessage.Text" using Utf8Encode()? No, the headers contain their charset inline as part of the string, and are encoded using function HdrE

Re: [twsocket] Cookie Manager

2012-03-09 Thread Angus Robertson - Magenta Systems Ltd
From: Daniele Rocchi > I tried uploading here > http://www.filefactory.com/file/ca95793/n/CookiesManager.pas The file is no longer available, it was a year ago. If Daniele is still here can you please email it to me directly, or anyone else that downloaded it. I've just created a new demo fo

Re: [twsocket] MimeTypesList error in delphix xe 2 update 4

2012-03-22 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] MimeTypesList error in delphix xe 2 update 4 > Hello, any one else having compiling and installing errors with the > latest SVN source in Delphi xe2 update 4???. > > [DCC Error] OverbyteIcsReg.pas(98): E2003 Undeclared identifier: > 'TMimeTypesList' I installed the lates

Re: [twsocket] ICS website down? overbyte.be DNS lookups fail

2012-03-23 Thread Angus Robertson - Magenta Systems Ltd
> svn, www and wiki cannot be resolved already tried from > a webservice with same result. All sites working from here. But maybe I'm using cached DNS? Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket

[twsocket] New ICS web browser demo

2012-03-23 Thread Angus Robertson - Magenta Systems Ltd
The ICS v7 SVN repository and nightly zip has been updated with a new demo application FrameBrowserIcs. This is an example internet browser using the HtmlViewer component from: or

[twsocket] New ICS cookie handler

2012-03-23 Thread Angus Robertson - Magenta Systems Ltd
The ICS v7 SVN repository and nightly zip has been updated with a new OverbyteIcsCookies.pas unit that supports client Cookie Handling, see RFC2109/RFC6265 (RFC2965 is obsolete). It provides a memory store for persistent and non-persistent cookies captured from the HTTP SetCookie header, and buil

Re: [twsocket] New ICS web browser demo

2012-03-24 Thread Angus Robertson - Magenta Systems Ltd
> > or > > I'd prefer this one for Unicode Delphi. > However running it with FastMM4 shows memory leaks. There are three different versions of HtmlViewer under development. 11.2 - from Goggle Code or GitHub is the stable version and what I'm using. SVN i

Re: [twsocket] How to embed images in the message bodyusingSslSmtpClient?

2012-03-27 Thread Angus Robertson - Magenta Systems Ltd
> my work I'm development in delphi5 yet, and I'll have to find a > solution to this, With ICSv7 we are still supporting the last seven Delphi compilers, testing and updating the packages for all these is tedious. We really can not support Delphi 6 and older for a free component. > [Error] Ov

Re: [twsocket] How to embed images in the messagebodyusingSslSmtpClient?

2012-03-28 Thread Angus Robertson - Magenta Systems Ltd
> StrictDelimiter is *not available in Delphi 7* Being unable to use any features added to Delphi in the last 10 years is very restricted. Maybe we need to cease support for Delphi 7 and 2005, and just leave 2007 which was the last to support legacy non-Unicode projects? Angus -- To unsubscrib

Re: [twsocket] How to embed images in the messagebodyusingSslSmtpClient?

2012-03-28 Thread Angus Robertson - Magenta Systems Ltd
> Summary, I work at a company that has a large legacy application > with more than 15 years of development in Delphi, since 2000 with > Delphi5. For that reason we still do serious bug fixes to ICS v5 and v6, but can not add new features. BTW, you don't need to use the IPV6 branch for secure

Re: [twsocket] TFtpCli ConnectFeatAsync

2012-04-04 Thread Angus Robertson - Magenta Systems Ltd
> Is there a special reason why methods ConnectFeatAsync and > ConnectFeatHostAsync are not executed with their own request types? > > {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * * * * *} > procedure TCustomFtpCli.ConnectFeatAsync; { V7.09 } > begin > Hi

Re: [twsocket] Download manager (Source)

2012-04-18 Thread Angus Robertson - Magenta Systems Ltd
> Working now with the THttpCLI component instead. > Got most of it to work now.. > But have no clue where the data is put when the download is > finished. The new web browser demo project now illustrates an HTML download queue, each image on a web page is queued and then downloaded using four T

Re: [twsocket] New ICS web browser demo

2012-04-18 Thread Angus Robertson - Magenta Systems Ltd
The web browser demo has been updated again. Arno has put a lot of effort into authentication and multipart/form-data file upload, and I've improved image download using a queue and a fixed number of static image download sessions (4) rather than downloading potentially dozens of images simultan

Re: [twsocket] FTP Error 426

2012-04-18 Thread Angus Robertson - Magenta Systems Ltd
> Here is the ICS Logger output for 2 attempt cycles (log below). > Can see the Shutdown before the data sent. > Does this help at all? Sorry, no. The ICS FTP component is very stable and widely used. Any issues with it are likely to be your implementation, or circumstances unconnected with your

<    1   2   3   4   5   6   7   8   9   >