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
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
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,
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
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
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
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
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
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
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
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
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.
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
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,
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
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
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
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
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:
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
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
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
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
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-
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
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?
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
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
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:
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
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,
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
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
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
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
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
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
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
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
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
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
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,
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? +
-
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
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
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
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
(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
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
:[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
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:
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
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
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
New property:
property XAutoGeneratedReply : Boolean read FXAutoGeneratedReply
{Bjørnar}
write FXAutoGeneratedReply; {Bjørnar}
The reason for using this is to tell the receiving mailserver
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
: [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
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
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
+ ': ' + E.Message + '';
end;
end; {Bjørnar}
{$IFDEF TRACE} TriggerDisplay('! HighLevelAsync done'); {$ENDIF}
FFctSet := [];
FNextRequest := nil;
FRequestDoneFlag := FALSE;
TriggerRequestDone(FHighLevelResult);
end;
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
-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
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
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
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
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
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
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
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
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
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
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
Ã...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
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 :=
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
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
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
?
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
. 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
79 matches
Mail list logo