RE: [twsocket] Is there a way to download a file in threads?

2005-04-14 Thread Bjørnar Nielsen
The only shortcoming of ICS is the web server which has no official and/or optimized CGI/ISAPI component and by design async which is bad for a web server. SZ, why do you think async design is bad for a webserver? Regards Bjørnar -- To unsubscribe or change your settings for TWSocket

RE: [twsocket] Little question... TList of HTTPCli

2005-05-03 Thread Bjørnar Nielsen
In C++ I would do something like this: int index=list-Remove(Sender); If Sender (your httpcli) is in that list, it will be removed, and it will return the index of the position before it is removed if the Sender was in the list. You should see the helpfiles, many examples and usefull hints

RE: [twsocket] ProcessMessages

2005-05-03 Thread Bjørnar Nielsen
Here is an example setting up a messagepump in a thread in C++, the aproach is the same with delphi: void __fastcall MyIOThread::Execute() { MSG msg; bool FinishThread=false; while(!Terminated !FinishThread GetMessage(msg, 0, 0, 0)) { try {

RE: [twsocket] Messages

2005-05-03 Thread Bjørnar Nielsen
If the application does not respond to mouseclicks etc, I think something is blocking somewhere. Maybe some of the functions in the dll does not return? Is the code really running in thread-context? Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-19 Thread Bjørnar Nielsen
I do not agree. Those operations translate to sending a message to the Windows control. There is no call to the message pump. If you override WndProc of the form, and you place a breakpoint inside your custom WndProc. Then you can see that it is called imidiately when you update a caption of a

[twsocket] Using THtmlSmtpCli

2005-05-25 Thread Bjørnar Nielsen
I'm going to make a mail-client for sending email, and I think about using THtmlSmtpCli. CharSet seems to be default to iso-8859-1. When using non-english chars in the content of the email, and names to sender in the header, must I encode to this iso-format my self before setting the properties,

RE: [twsocket] Latest revision May, '05 entering URLs

2005-05-26 Thread Bjørnar Nielsen
I have also tried the '132.163.4.102:13' fails and shows 501 Protocol not implemented I had some similar error. When I inserted http:// in fron of the url, the error disapeared. Regards Bjørnar -- To unsubscribe or change your settings for TWSocket mailing list please goto

RE: [twsocket] Internet cafe software

2005-05-31 Thread Bjørnar Nielsen
Look through the demos and find a demo that uses the WSocketServer. This component handles the connection of clients, disconnection of clients and so on and has a list of all connected clients. And you can build your own protocol your self. The HttpSrv component is a webserver, this is built on

RE: [twsocket] No response problem [THttpServer - TCustomLineWSocket]

2005-06-20 Thread Bjørnar Nielsen
When users clicks links or post forms in their browsers, sometimes they don't get any answer. By debugging the server I realized that in such a case the OnPostDocument event is never triggered. Are you sure the request you don't get an answer from is received on the server? When you run a

RE: [twsocket] No response problem [THttpServer - TCustomLineWSocket]

2005-06-20 Thread Bjørnar Nielsen
Yes, as I explained in my last mail, when a user makes a request (GET or POST or HEAD or whatever), the server get it, and start to analyze it but stops inside TCustomLineWSocket.TriggerDataAvailable. Ok, I missed that part, my previos message does not explain your problem. In

RE: [twsocket] No response problem [THttpServer - TCustomLineWSocket]

2005-06-21 Thread Bjørnar Nielsen
I checked this and I am pretty sure it happens only on second time connections. When I first do a GET or POST, it always works. Just out of my head, here is som possible reasons that maybe can cause your problem. - The header you generate has wrong content length that tells the length of the

RE: [twsocket] HttpTst: Can erad xml on LAN, what am I doing wrong for internet?

2005-06-21 Thread Bjørnar Nielsen
Both Post and Get will result in that you get an answer from the server. The differense of these 2 is what you send to the server. The reason that Post exist is that you get more possibility to send more data in the request. If you want to uppload a file to a webserver, then you use Post. If you

RE: [twsocket] Assign event handler to manually created TStmpCli

2005-06-30 Thread Bjørnar Nielsen
I use CBuilder. I also sometimes have problems with debugging delphi sourse, try rebuilding ICS with all debug options on, and the same with your project, then try to inspect the variables. Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [twsocket] Listenbacklog

2005-06-30 Thread Bjørnar Nielsen
It's the OS that get notified when a client wants to connecto to your program. If the Backlog is 1, the OS wont accept any more connections before your program have accepted the previous attempt to connect. On a non-server-platform, this backlog is usually limited to 5 or 10. On a

Re: [twsocket] FHtmlCharSet property of THtmlSmtpCli

2005-09-02 Thread Bjørnar Nielsen
I have seen but had not time yet to examine the problem. Thanks. You will understand the problem in a minute or so when examining. There is a FHtmlCharSet wich is used for the html-part, but there is no way of setting the value unless you derive the component. I just made a set-er an get-er for

Re: [twsocket] Download time

2005-09-02 Thread Bjørnar Nielsen
GetTickCount returns milliseconds since Windows booted. It's a core Windows API used for most application timing, although it only has a resolution of about 20ms (I think), it also wraps after 49 days, so some care is needed for applications that run longer without a reboot. You

Re: [twsocket] [TMimeDec] Beta version to test

2005-09-23 Thread Bjørnar Nielsen
I have tested the beta and had some trouble with it, but I use the component through MimeDecEX from usermade page. Did not do any changes before testing. However, I have a question. Decoding attachments seems to take a long time. Decoding a base64-encoded attachment of 10 MB takes 17 sec. Is

Re: [twsocket] [TMimeDec] Beta version to test

2005-09-26 Thread Bjørnar Nielsen
On which machine? (cpu, mainboard, amount of free RAM, operating system...) If it's new/rather new machine, such result is far below expectations - I get 20 sec on old P120 with 32MB RAM and Win95. Pentium M 2,13 GHz - 533 MHz FSB, 1 GB ram, WinXP Pro, so I guess the machine should

Re: [twsocket] THttpCli and redirected links bug - continued

2005-09-28 Thread Bjørnar Nielsen
First, i have not read the messages you write this follow up to. This is a follow up. I wanted to report what appears to be a related issue to the bug in THttpCli when a link is redirected. It seems that the RequestDone is called twice. This has already been reported and I've implemented a

[twsocket] Bug in SmtpProt.pas

2005-10-25 Thread Bjørnar Nielsen
When using mail-client from ICS, and set the subject property with a string length very long, my exe crashes and goes down and I found the reason here: procedure TCustomSmtpClient.DataNext; var MsgLine : array [0..1023] of char; begin { If we have been disconnected, then do nothing.

Re: [twsocket] Bug in SmtpProt.pas

2005-10-25 Thread Bjørnar Nielsen
The SMTP protocol doesn't allow longer lines in any case, so your application could check for a correct length. Also it important to wrap lines that are longer than 74 cups. Means either a blank or tab in front of a continuation line. I still think there should be check on linelength

Re: [twsocket] Bug in SmtpProt.pas

2005-10-26 Thread Bjørnar Nielsen
Outlook *does* indeed break long subject lines. Here's an example of a message I just sent using Outlook 2000: It does not when I test (Outlook 2003 SP1, but also with Norton Antivirus, dont know if this affects this). Other lines are split but not the subject. Anyway,

Re: [twsocket] Bug in SmtpProt.pas

2005-10-26 Thread Bjørnar Nielsen
Anyway, the RFC 821 says that the maximum line length including CRLF is 1000 chars. If I use a subject that is longer, and break the line at 74 with CRLF and tab, the header-subject would be RFC-compliant, but the smtp-component would crash. I guess I could use OnProcessHeader and split

Re: [twsocket] Bug in SmtpProt.pas

2005-10-26 Thread Bjørnar Nielsen
That's what I was alluding at; I was assuming he meant that the message would arrive intact with the entire subject line without breaks or truncation. It does, but I can't write more than 256 chars in the subject-line. The subject is kept as a single line, no splits. The subject is sent

Re: [twsocket] Bug in SmtpProt.pas

2005-10-26 Thread Bjørnar Nielsen
That's an old bug in OE, you should not copy M$ bugs but wrap the subject line. BTW: I think having ~1000 chars for the subject line is far enough, or do you know a client that would display such long subjects properly? I just testet Outlook, and it seems difficult to show the mail

[twsocket] Compiling latest ICS-beta

2006-01-27 Thread Bjørnar Nielsen
I downloaded and installed latest beta and I found these problems (using BCB6). The package compiled fine but I get errors when using ICS in a testproject in WSocket.hpp on these: IOCPARM_MASK IOC_VOID IOC_OUT IOC_IN IOC_INOUT They are defined in both Winsock.pas and WSoscket.pas. When I

Re: [twsocket] Problem with the lists

2006-01-27 Thread Bjørnar Nielsen
I got the message, but have trouble sending to the ICS-SSL-list. My mail is rejected by postmaster. Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE Sent: 27. januar 2006 10:27 To: twsocket@elists.org Subject:

Re: [twsocket] Compiling latest ICS-beta

2006-01-27 Thread Bjørnar Nielsen
You have not the latest version ! I added those constant because I needed them for keep alive processing I added a few days ago (remember my message ?). Maybe I added too much constants, duplication from winsock ? Anyway, it shouldn't hurt. It seems to be a problem with BCB, I could not

Re: [twsocket] Compiling latest ICS-beta

2006-01-27 Thread Bjørnar Nielsen
Which one exactly did you remove ? I commented these consts from WSocket.pas IOCPARM_MASK IOC_VOID IOC_OUT IOC_IN IOC_INOUT Regards Bjørnar -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at

[twsocket] www.overbyte.be

2006-01-31 Thread Bjørnar Nielsen
Down again? Regards Bjørnar -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] www.overbyte.be

2006-01-31 Thread Bjørnar Nielsen
Down again? Works from here. Note that the provider is moving, so there may be some interruption while they setup things, and probably when they change their IPs (DNS propagation). I understand. Now it works from here. Regards Bjørnar -- To unsubscribe or change your settings for

Re: [twsocket] SMTPcli and multipart/mixed

2006-02-08 Thread Bjørnar Nielsen
There is a THtmlSmtpCli. In this one you set both the plain-text-part and the html-part in separate properties. Set Contenttype to smtpHtml and set the text for PlainText and HtmlText. This will set up the boundrys for you when sending the mail. Regards Bjørnar -Original Message-

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Bjørnar Nielsen
I have a similar design, but I also have a pointer to the thread in the THttpConnection so that the connection can set a flag on the thread if the connection is dropped before the thread has finished the work and risk using a freed connection. This design could serve several connections/threads

[twsocket] Running on W95

2006-02-27 Thread Bjørnar Nielsen
I have trouble with running an exe that uses the the THttpCli component on a W95. It works on W98 and later. And it works also on earlier versions of ICS, but not the latest beta. I get this error-message in ReasonPhrase in OnRequestDone: Can't connect: No error (Error #0) Anyone has any tips?

Re: [twsocket] Running on W95

2006-02-27 Thread Bjørnar Nielsen
Of Fastream Technologies Sent: 27. februar 2006 14:01 To: ICS support mailing Subject: Re: [twsocket] Running on W95 Which version of winsock does w95 have? I have a strong feeling that upgrading to ws2 would help. Regards, SZ - Original Message - From: Bjørnar Nielsen [EMAIL

Re: [twsocket] Running on W95

2006-02-27 Thread Bjørnar Nielsen
Anyone has any tips? I suspect a security product which prevent connection. There is no antivirus or similar on the system. I tried compiling a testproject with the latest beta and the same project on an earlier ICS-distribution. I get this error only on latest beta, so there must be

Re: [twsocket] Running on W95

2006-02-27 Thread Bjørnar Nielsen
you say latest beta, do you mean v6? Regards, SZ - Original Message - From: Bjørnar Nielsen [EMAIL PROTECTED] To: 'ICS support mailing' twsocket@elists.org Sent: Monday, February 27, 2006 3:32 PM Subject: Re: [twsocket] Running on W95 Anyone has any tips? I suspect

Re: [twsocket] Running on W95

2006-02-27 Thread Bjørnar Nielsen
The numbers give me 1.1 on both my XP and W95. Hov do I control which winsock-version is installed? Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois Piette Sent: 27. februar 2006 15:00 To: ICS support mailing Subject: Re:

Re: [twsocket] Running on W95

2006-02-28 Thread Bjørnar Nielsen
version of winsock.dll located in your %windir%. If it is 4.00.950, you've got Winsock 1, Winsock 2 is 4.10.1656 (at least at my Win95 installation). My winsock.dll is version 4.00.. If what you say is correct, then my version seems to be even older than 1.1. Upgrading winsock, is it

Re: [twsocket] Running on W95

2006-02-28 Thread Bjørnar Nielsen
version of winsock.dll located in your %windir%. If it is 4.00.950, you've got Winsock 1, Winsock 2 is 4.10.1656 (at least at my Win95 installation). My winsock.dll is version 4.00.. If what you say is correct, then my version seems to be even older than 1.1. Upgrading winsock,

Re: [twsocket] Running on W95

2006-02-28 Thread Bjørnar Nielsen
Ok, but it works now after upgrade and I'm happy. But others might have users that use W95 and outdated winsock-versions. If they switch from a prior ICS-installation to the latest beta, the application might not work if not updating the winsock-version also. Regards Bjørnar My winsock.dll is

Re: [twsocket] Compiling latest ICS-beta

2006-03-10 Thread Bjørnar Nielsen
beta and the forementioned constants are commented-out (I checked it). On 1/27/06, Bjørnar Nielsen [EMAIL PROTECTED] wrote: I downloaded and installed latest beta and I found these problems (using BCB6). The package compiled fine but I get errors when using ICS in a testproject

Re: [twsocket] Making a MT HTTP Server -- NEED HELP!

2006-03-24 Thread Bjørnar Nielsen
Unresolved external usually means that you are using a unit that you have the header-file for, but do not have the lib-file or object-file, or not including them in you project when linking. Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

[twsocket] Using the ftp-client

2006-05-09 Thread Bjørnar Nielsen
I tried the FTP-client of ICS for the first time today. I want to conect and upload a file and quit, and found the Transfer-prcedure. All seems fine, I get logged in and the password is correct, but I get the following error-message when sending the file: 500 'STOR' not understood Is this a

Re: [twsocket] HTTP/1.1 pipelining--any need?

2006-07-31 Thread Bjørnar Nielsen
The ICSHTTP-server already have support for pipelining as long as you are only serving static files. But if processing a request requires dataprocessing in another thread, the responses might be answered in the wrong order. I put responses and requests in a list and make sure the reponse to be

Re: [twsocket] TCustomWSocket.ASyncReceive infinite loop

2006-10-06 Thread Bjørnar Nielsen
I think this might happen when you don't call receive to get all the data from the component in OnDataAvailable. Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerhard Rattinger Sent: 6. oktober 2006 14:01 To: ICS support mailing

Re: [twsocket] Why is this list so slow?

2006-11-09 Thread Bjørnar Nielsen
Test (I send this message 9th november 10:00, +0100). Regards Bjørnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: 9. november 2006 09:06 To: ICS support mailing; [EMAIL PROTECTED] Subject: Re: [twsocket] Why is this list so

[twsocket] Using Imap

2006-11-21 Thread Bjørnar Nielsen
I can't see a component for Imap in the ICS-package. I have never used IMAP and don't know much about this protocol, but now have a customer that needs support for this. Does anyone in this list have any tip for IMAP-components that works well with ICS? Regards Bjørnar -- To unsubscribe or

[twsocket] Httpserver and multithreading

2006-11-30 Thread Bjørnar Nielsen
If I want to have a http-server with support for very many connections and high performance. My understanding is that this can be achieved by spreading the connections to several threads. For example 200 connections in one thread, 200 more in the next ect. How can this be done? One thread where

Re: [twsocket] Httpserver and multithreading

2006-12-01 Thread Bjørnar Nielsen
Thank you, I found a zip-archive there that seems the right one, I will have a look at it. Regards Bjørnar remember I uploaded my HTTPMTServer pascal code to http://www.fastream.com/ics sometime ago.. Basically what it does is to move the creation of TWSocket instance to the worker

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-13 Thread Bjørnar Nielsen
I have not paid very much attention to this duscussion, but I want to say something about using ICS on many diffent computers and different platforms. My company have made software based on ICS that run on W95, W98, NT, W2000, WXP and Vista. The components used is HttpCli, SMTPCli, HtmlSMTPCli,

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-19 Thread Bjørnar Nielsen
I use the same component and send norwegian, swedish and even chinese chars in the subject (but Outlook can't show chinese in the subject on my computer). Use Quoted printable or Base64 to encode special chars. Example for Base64 could be like this (C++): HtmlSmtpCli1-HdrSubject = =?utf-8?B? +

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-21 Thread Bjørnar Nielsen
- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Bjørnar Nielsen Skickat: den 19 december 2006 17:39 Till: 'ICS support mailing' Ämne: Re: [twsocket] Freeze when using smtp after recreating itsparentform I use the same component and send norwegian, swedish and even chinese chars

Re: [twsocket] Possible bug and solution in TWndControl

2007-02-06 Thread Bjørnar Nielsen
What about using RegisterWindowMessage to let windows give you a value for the windows-message not beeing in use? Usually this procedure is used when sending windows messages between applications. But I don't see a reason for not using this inside the application also. If we give the windows

[twsocket] Performance on the latest ICS V6

2007-02-23 Thread Bjørnar Nielsen
I'm using the latest ICS V6 and testing the THttpSrv-component. I'm doing the test on an old machine to see performance. It seems that the V6 is slower than V5. By that I mean that I get a faster transfer-rate from the server to a client (the same client on both test) with the V5 than with the

Re: [twsocket] Performance on the latest ICS V6

2007-02-25 Thread Bjørnar Nielsen
the original Webserv demos from ICS distributions. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Arno Garrels wrote: Bjørnar Nielsen wrote: I'm using the latest ICS V6 and testing the THttpSrv-component. I'm doing the test on an old machine to see

Re: [twsocket] New ICS-V6andICS-SSL-V6 available BCB COMPATIBILITY WARNING

2007-06-26 Thread Bjørnar Nielsen
(both SSL and normal) V6 under BCB6-2006. You can count this for our consultancy budget. Best Regards, SZ - Original Message - From: Bjørnar Nielsen [EMAIL PROTECTED] To: 'SSL implementation for ICS' [EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 10:28 AM Subject: Re

Re: [twsocket] New ICS-V6andICS-SSL-V6 available BCB COMPATIBILITYWARNING

2007-06-26 Thread Bjørnar Nielsen
in Delphi can look to my demo. BTW, can you see the same error with my demo project? Regards, Gorkem - Original Message - From: Bjørnar Nielsen [EMAIL PROTECTED] To: 'ICS support mailing' twsocket@elists.org Sent: Tuesday, June 26, 2007 2:54 PM Subject: Re: [twsocket] New ICS-V6andICS

Re: [twsocket] New ICS-V6andICS-SSL-V6 availableBCB COMPATIBILITYWARNING

2007-06-26 Thread Bjørnar Nielsen
:[EMAIL PROTECTED] On Behalf Of Fastream Technologies Sent: 26. juni 2007 17:10 To: ICS support mailing Subject: Re: [twsocket] New ICS-V6andICS-SSL-V6 availableBCB COMPATIBILITYWARNING Had you upgraded to the latest v6? Regards, SZ - Original Message - From: Bjørnar Nielsen [EMAIL

[twsocket] Cathing window messages for HttpSrv

2008-03-18 Thread Bjørnar Nielsen
I'm using the THttpSrv in a thread, and want to catch the windows message to the server. How is this possible? My messagepump int the execute of the thread is like this: while(!Terminated GetMessage(msg, 0, 0, 0)) { switch(msg.message) { case WM_CUSTOM_SET_SERVER_SETTINGS:

Re: [twsocket] Cathing window messages for HttpSrv

2008-03-25 Thread Bjørnar Nielsen
To: ICS support mailing Subject: Re: [twsocket] Cathing window messages for HttpSrv Bjørnar Nielsen wrote: I'm using the THttpSrv in a thread, and want to catch the windows message to the server. How is this possible? It's safe to use PostThreadMessage() for those custom messages, however you must

Re: [twsocket] Cathing window messages for HttpSrv

2008-03-25 Thread Bjørnar Nielsen
for it to work? Would I gain much performance with this feature enabled on the server? Regards Bjørnar Bjørnar Nielsen wrote: I'm using PostThreadMessage to send messages to my thread, but I want to interrupt messages that is intended to go to a WSocket-component. The reason is that I'm

Re: [twsocket] Cathing window messages for HttpSrv

2008-03-25 Thread Bjørnar Nielsen
of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Bjørnar Nielsen [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, March 25, 2008 11:56 AM Subject: Re: [twsocket

[twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas

2008-03-25 Thread Bjørnar Nielsen
New property: property XAutoGeneratedReply : Boolean read FXAutoGeneratedReply {Bjørnar} write FXAutoGeneratedReply; {Bjørnar} The reason for using this is to tell the receiving mailserver

Re: [twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas

2008-03-26 Thread Bjørnar Nielsen
problem before. In any case, this should be handled at the server level, and SmtpProt is intended to be an SMTP client. dZ. -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html On Mar 25, 2008, at 15:27, Bjørnar Nielsen wrote: New property: property

Re: [twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas

2008-03-26 Thread Bjørnar Nielsen
: [twsocket] Proposal for new feature in OverbyteIcsSmtpProt.pas Bjørnar Nielsen wrote: I did not know of this header-field. Why not add properties for both? The xautogeneratedreply works for my purpose and the mailservers I have testet against. Regards Bjørnar Well, because delivery loops

[twsocket] SMTPProt.pas

2008-04-03 Thread Bjørnar Nielsen
I think there is a wakness/bug in the smtpprot.pas: procedure TCustomSmtpClient.RcptTo; begin if FRcptName.Count = 0 then raise SmtpException.Create('RcptName list is empty'); FItemCount := -1; RcptToNex When this exception is raised, I cant catch it anywhere. No

[twsocket] Improvements in OverbyteIcsHttpSrv.pas

2008-04-04 Thread Bjørnar Nielsen
I've made som improvements on keepalive. The file can be downloaded here: www.edialog24.no/download/OverbyteIcsHttpSrv.pas Please look through the changes and comment. I added new property FConnection (to define max requests pr connection, keepalivetime etc). I added triggering of

Re: [twsocket] SMTPProt.pas

2008-04-07 Thread Bjørnar Nielsen
+ ': ' + E.Message + ''; end; end; {Bjørnar} {$IFDEF TRACE} TriggerDisplay('! HighLevelAsync done'); {$ENDIF} FFctSet := []; FNextRequest := nil; FRequestDoneFlag := FALSE; TriggerRequestDone(FHighLevelResult); end; Bjørnar Nielsen

Re: [twsocket] SMTPProt.pas

2008-04-08 Thread Bjørnar Nielsen
support mailing Subject: Re: [twsocket] SMTPProt.pas Bjørnar Nielsen wrote: Arno, I think you know this bether than me, but I think you are right. Calling RequestDone with errormessage would also solve the problem for me. A 500 status code were probably more suitable indicating a persistent

Re: [twsocket] Improvements in OverbyteIcsHttpSrv.pas

2008-04-08 Thread Bjørnar Nielsen
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjørnar Nielsen Sent: 4. april 2008 12:57 To: ICS support mailing Subject: [twsocket] Improvements in OverbyteIcsHttpSrv.pas I've made som improvements on keepalive. The file can be downloaded here: www.edialog24

[twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-08 Thread Bjørnar Nielsen
Se the new content-type at the bottom (xml): function DocumentToContentType(FileName : String) : String; var Ext : String; begin { We probably should use the registry to find MIME type for file types } Ext := LowerCase(ExtractFileExt(FileName)); if Length(Ext) 1 then

Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas

2008-04-09 Thread Bjørnar Nielsen
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DZ-Jay Sent: 8. april 2008 16:11 To: ICS support mailing Subject: Re: [twsocket] Proposal for new content-type in function DocumentToContentType in OverbyteIcsHttpSrv.pas On Apr 8, 2008, at 09:45, Bjørnar Nielsen wrote: { We probably should use

[twsocket] WSocket.Name, NO_ADV_MT and SafeWSocketGCount

2009-08-12 Thread Bjørnar Nielsen
From latest snapshot, V7 with SSL, I get this error: [DCC Error] OverbyteIcsSmtpProt.pas(1665): E2003 Undeclared identifier: 'SafeWSocketGCount' FWSocket.Name:= ClassName + '_Socket' + IntToStr(SafeWSocketGCount); SafeWSocketGCount is defined like this: {$IFNDEF NO_ADV_MT} function

[twsocket] Proposal for more contenttypes in DocumentToContentType in OverbyteIcsHttpSrv.pas

2009-09-13 Thread Bjørnar Nielsen
else if (Ext = 'doc') or (Ext = 'docx') then Result := 'application/msword' else if (Ext = 'xls') or (Ext = 'xlsx') then Result := 'application/vnd.ms-excel' else if (Ext = 'ppt') or (Ext = 'pptx') then Result := 'application/vnd.ms-powerpoint' Regards Bjørnar

Re: [twsocket] Latest change in OverbyteIcsMimeDec.p as (Bjørnar, Angus)

2009-10-18 Thread Bjørnar Nielsen
OverbyteIcsMimeDec.pas around line #2258 PFileName := DecodeMimeInlineValue (FDecodeW.FileName) ; PSubject := FDecodeW.Subject; {V7.18 Bjørnar} The subject should be IMO MIME inline decoded, shouldn't it? Probably, although since the subject does not apply to MIME parts I did

Re: [twsocket] Bug and proposal for fix in TsslHttpCli using proxy

2010-02-17 Thread Bjørnar Nielsen
0 (proxy send us a description of an error) then we don't continue to send data. Any thoughts on this anyone? Regards Bjørnar Nielsen _ From: Bjørnar Nielsen Sent: 17. februar 2010 21:41 To: ICS support mailing Subject: [twsocket] Bug and proposal

[twsocket] Bug and proposal for fix in TsslHttpCli using proxy

2010-02-17 Thread Bjørnar Nielsen
I have found a bug using https through proxy. After connect-command to the the proxy it answers back to the client 200 Connection established. I have come across some proxy-servers that answers 200 OK back to the client. This is a problem for TsslHttpCli. -- To unsubscribe or change your

[twsocket] Strange bug in WSocketServer

2010-03-10 Thread Bjørnar Nielsen
I use Codegear2010 C++-builder and have a strange problem. The following code gives me the error: -- TWSocketServer * WSocketServer1=new TWSocketServer(this); WSocketServer1-Listen(); - The call to Listen calls Abort instead of Listen in the pas-file (set

Re: [twsocket] Strange bug in WSocketServer

2010-03-10 Thread Bjørnar Nielsen
Of Arno Garrels Sent: 10. mars 2010 14:39 To: ICS support mailing Subject: Re: [twsocket] Strange bug in WSocketServer Bjørnar Nielsen wrote: I use Codegear2010 C++-builder and have a strange problem. The following code gives me the error: -- TWSocketServer * WSocketServer1

Re: [twsocket] Found a bug and made a fix in function UrlDecode

2010-08-05 Thread Bjørnar Nielsen
Result := AnsiToUnicode(U8Str, SrcCodePage); {$ELSE} Result := Utf8ToStringA(U8Str) else Result := U8Str; {$ENDIF} end; Regards Bjørnar -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Bjørnar Nielsen Sent: 5

Re: [twsocket] Found a bug and made a fix in function UrlDecode

2010-08-05 Thread Bjørnar Nielsen
Ã...ge is not a valid URL encoded string. I know, but it is valid UTF8. I think trying to url-decode it should not break the string. I have a webserver that works against different clients, and not all of the clients url-encode data in the url. But all of the clients UTF8-encode data. That

Re: [twsocket] Found a bug and made a fix in function UrlDecode

2010-08-06 Thread Bjørnar Nielsen
Arno, Would you expect a correct result as well if you base64-decoded a quoted-printable encoded string? No, I agree. But the problem is not the decoding itself but the way Unicode-chars and Ansi-chars are treated. This is the line where the problem lies: MyAnsichar :=

Re: [twsocket] Found a bug and made a fix in function UrlDecode

2010-08-06 Thread Bjørnar Nielsen
Arno, The only workaround that comes to my mind was another overload that takes a RawByteString instead of string. I won't use AnsiString because implicit ansi string casts must be avoided too. That would work for me. I'm not very familiar with the use of RawByteString, but I made

Re: [twsocket] Found a bug and made a fix in function UrlDecode

2010-08-09 Thread Bjørnar Nielsen
Arno, ... try the following code and let me know how it works for you, The code works for me. But should not the first overload directive be inside the conditional define? Regards Bjørnar -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] Does SslHttpServer support multippel domains?

2011-02-18 Thread Bjørnar Nielsen
Is it possible to host more than one domain on the same SslHttpServer-component? Must I have a special cert with several alternative names or can I just add more certs to support more domains? Regards Bjørnar Nielsen -- To unsubscribe or change your settings for TWSocket mailing list please

[twsocket] Question about NTLM2

2011-10-10 Thread Bjørnar Nielsen
? Regards Bjørnar Nielsen -- 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

[twsocket] Proposal to implement NTLM v2 in HttpCli

2011-10-27 Thread Bjørnar Nielsen
. Is anybody here capable and interested in doing this? Regards Bjørnar Nielsen -- 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