I need to log the IP address of the client when it connects to the
server.
Look at the Web Application Server sample,
OverbyteIcsWebAppServerMain.pas, which is similar to the main web server.
It shows how to write W3C format log file from the AfterAnswer event,
including how much data was
Hi,
Version 7.39
I need to log the IP address of the client when it connects to the server.
OnClientConnect seems to be the best place but I do not see any way to get
the IP address of the connecting client?
Suggestions?
Thanks,
Mark
--
To unsubscribe or change your settings for TWSocket
GetPeerAddr
onHTTPRequestDone is also a good place, if you want to log bytes
delivered, etc..
Hi,
Version 7.39
I need to log the IP address of the client when it connects to the server.
OnClientConnect seems to be the best place but I do not see any way to get
the IP address of the
GetPeerAddr
onHTTPRequestDone is also a good place, if you want to log bytes
delivered, etc..
DOH!
Of course.
When I was initially testing... oh never mind. I had one of those moments.
Thanks,
Mark
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
GetPeerAddr
onHTTPRequestDone is also a good place, if you want to log bytes delivered,
etc..
DOH!
Of course.
When I was initially testing... oh never mind. I had one of those moments.
Thanks,
Mark
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Hello,
Delphi 2007, ICS 7.39 (THttpServer)
I have a server (THttpServer) and clients derived from THttpConnection and
all has been working well.
I now need to set the initial page a user accesses after log on, regardless
of the url he is attempting to access first.
All the log on code is
I now need to set the initial page a user accesses after log on,
regardless of the url he is attempting to access first.
You can do this in the BeforeProcessRequest method, by modifying the
client path to another page name.
procedure TMainForm.HttpAppSrvBeforeProcessRequest(Sender, Client:
Hello,
I have a timer that I am using to require a re-logon after X minutes.
In the AuthGetPassword I check if the user has timed out and do not supply a
password and this causes the browser to ask for the credentials.
Perfect.
If I select cancel for when asked for the user name and password
Hi. I'm trying to build a first application with ICS (latest version), under
Delphi XE and I'm getting an unexpected behavior. I took WebServer demo as a
tutorial.
The application works well with OnGetDocument events, but when I get a
OnPostDocument event, after I perform the return of the
I'm using ICS under Delphi 2007, specifically THttpServer.
Is it possible there is a memory leak in the component?
Even on an empty form, in a new project, with just a THttpServer and a button
to start the server, the application's memory usage keeps increasing every time
a user connects.
Is
FrancoGG wrote:
I'm using ICS under Delphi 2007, specifically THttpServer.
Is it possible there is a memory leak in the component?
Nothing is impossible, look at Japan :(
Even on an empty form, in a new project, with just a THttpServer and
a button to start the server, the application's
On 17-03-2011 17:12, FrancoGG wrote:
the application's memory usage keeps increasing every time a user connects
If you are using a custom THttpConnection, check if you are missing to
free any of its owned objects in its destructor method.
--
To unsubscribe or change your settings for TWSocket
RTT wrote:
Done. I've now sent you a PM with the .diff file.
Thanks.
--
Arno Garrels
--
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
But, why don't keep the naming schema? TriggerAfterProcessRequest (
and respective OnAfterProcessRequest) would be less confuse.
The event is between two processing stages, so could be named after one
or before the other.
What is the purpose of the OPTIONS method?
Angus
--
To unsubscribe
I've looked at the demo, which got me to come up with the following
code, however it doesn't work yet.
I get the PostDocument event, but it doesn't appear to progress to the
PostedData event (I don't get any PostedData logs)
Any thoughts that may fix me?
// Extract from setup:
#define
David Lewis wrote:
I've looked at the demo, which got me to come up with the following
code, however it doesn't work yet.
I get the PostDocument event, but it doesn't appear to progress to the
PostedData event (I don't get any PostedData logs)
Any thoughts that may fix me?
From a brief
RTT wrote:
Hi everyone!
Is there any simple way to handle other than the GET, POST and HEADER
request methods,... as OPTIONS,...?
The way it is now, the THttpConnection.ProcessRequest procedure always
respond with a Answer501, not giving any chance to handle other
methods. I think a
On 10-09-2010 16:43, Arno Garrels wrote:
Another thing that would be useful, if added to the code base of the
THttpConnection, is the possibility to send additional headers from
the THttpConnection.SendDocument, to define cache control, etc..
procedure
Is there any simple way to handle other than the GET, POST and HEADER
request methods,... as OPTIONS,...?
You'd currently have to override the entire ProcessRequest procedure to
add a new method.
By the way, the TriggerBeforeAnswer is used in what scenarios?
From
the code above, it
RTT wrote:
On 10-09-2010 16:43, Arno Garrels wrote:
Another thing that would be useful, if added to the code base of the
THttpConnection, is the possibility to send additional headers
from the THttpConnection.SendDocument, to define cache control,
etc.. procedure
Thank you for the explanation Angus.
But, why don't keep the naming schema? TriggerAfterProcessRequest ( and
respective OnAfterProcessRequest) would be less confuse.
Rui
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Done. I've now sent you a PM with the .diff file.
Feel free to apply your changes to the latest SVN revision and send me
the patch file by PM. Changes MUST not break existing code and a change
log in unit's comment section was helpful too.
--
To unsubscribe or change your settings for
I'm putting together a basic web server for a small application to
communicate with.
I have the GET event working as intended, but am having difficulty with
the POST event.
The event fires, but I can't seem to work out where to find the POST data...
I tried: ((THttpConnection
David Lewis wrote:
I'm putting together a basic web server for a small application to
communicate with.
I have the GET event working as intended, but am having difficulty
with
the POST event.
The event fires, but I can't seem to work out where to find the POST
data...
I tried:
Hi everyone!
Is there any simple way to handle other than the GET, POST and HEADER
request methods,... as OPTIONS,...?
The way it is now, the THttpConnection.ProcessRequest procedure always
respond with a Answer501, not giving any chance to handle other methods.
I think a
Hello,
I searched google but found no answer to this. I am writing two sockets
content proxy for the CONNECT method of HTTP/1.1. When I connect with
FileZilla and IE to FTP sites, I get the banner but the client's pumped data
(the USER FTP command for example), the data never arrives at
Hello,
I have an upgraded code from v6. The below line:
adminHTTPServer = new THttpServer(NULL);
causes AV (write of address 0014). Any idea what might have I done
wrong? This is a GUI app but for debugging the service so do not want to use
Forms::Application.
Best Regards,
SZ
--
To
Also FYI: I have defined in both gui app and package
NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG .
The Delphi guys may say why don't you step into the code and debug but
BCB2007 does not let me step into Delphi code in C++ projects.
Regards,
Gorkem Ates
On
Hello,
I fixed this by removing the v6 libs from project file using Notepad.
Regards,
SZ
On 5/11/09, Fastream Technologies ga...@fastream.com wrote:
Also FYI: I have defined in both gui app and package
NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG .
The
Fastream Technologies wrote:
Hello,
I fixed this by removing the v6 libs from project file using Notepad.
So not a bug in ICS.
Please note that the THttpServer got an internal timer which iterates
thru the list of clients every 5 seconds to detect timeouts.
This may be important to know if
Fastream Technologies wrote:
Also FYI: I have defined in both gui app and package
NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG
.
The Delphi guys may say why don't you step into the code and debug but
BCB2007 does not let me step into Delphi code in C++
The problem is I must run my C++ project with release config as otherwise it
gives av due to memory fragmentation (HEAVY duty!).
Regards,
SZ
On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote:
Fastream Technologies wrote:
Also FYI: I have defined in both gui app and package
Fastream Technologies wrote:
The problem is I must run my C++ project with release config as
otherwise it gives av due to memory fragmentation (HEAVY duty!).
If you want to debug, debug information have to be included, that's
true. But those AVs are IMO a hint that something went rather wrong
Hi,
On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote:
Fastream Technologies wrote:
The problem is I must run my C++ project with release config as
otherwise it gives av due to memory fragmentation (HEAVY duty!).
If you want to debug, debug information have to be included, that's
true.
[mailto:twsocket-boun...@elists.org] On
Behalf Of Fastream Technologies
Sent: Monday, May 11, 2009 1:10 PM
To: ICS support mailing
Subject: Re: [twsocket] THttpServer under ICSv7 and BCB2007
Hi,
On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote:
Fastream Technologies wrote:
The problem is I
Heiko Sommerfeldt wrote:
Can this mechanism be used to enforce a logout? My web site should
have a logout/new login link. When this link is activated, the
browser should ask for new login credentials.
It would not work reliable since for example, IE6 shows the login dialog
with previously
Heiko Sommerfeldt wrote:
Hi,
I am using THttpServer with digest authentication and it works well.
What I need is a logout, so the user (browser) needs a new login.
It's IMO not possible to force the browser to display a login dialog.
Currently the HTTP server uses a hardcoded
Hi,
I am using THttpServer with digest authentication and it works well.
What I need is a logout, so the user (browser) needs a new login.
It's IMO not possible to force the browser to display a login dialog.
Currently the HTTP server uses a hardcoded nonce-lifetime of one minute.
Heiko Sommerfeldt wrote:
The main problem is the following: If the user (of the browser) puts
in a wrong password the connection is refused. Now the user opens
(refresh) the page again and the browser sends the rejected digest
information again automatically so the login fails again.
Is
Scrive Heiko Sommerfeldt i...@phoner.de:
[...]
The main problem is the following: If the user (of the browser) puts in
a wrong password the connection is refused. Now the user opens (refresh)
the page again and the browser sends the rejected digest information
again automatically so the
The main problem is the following: If the user (of the browser) puts
in a wrong password the connection is refused. Now the user opens
(refresh) the page again and the browser sends the rejected digest
information again automatically so the login fails again.
Is there really no solution for
Do you have any proxy configures for your browser?
Regards,
SZ
On Thu, Jan 1, 2009 at 2:23 PM, Heiko Sommerfeldt i...@phoner.de wrote:
The main problem is the following: If the user (of the browser) puts
in a wrong password the connection is refused. Now the user opens
(refresh) the
Maurizio Lotauro wrote:
Scrive Heiko Sommerfeldt i...@phoner.de:
[...]
The main problem is the following: If the user (of the browser) puts
in a wrong password the connection is refused. Now the user opens
(refresh) the page again and the browser sends the rejected digest
information
Do you have any proxy configures for your browser?
No.
--
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
Yes, it is automatically sent by the component.
However, after a little test with Firefox, and passing an invalid password,
I see an infinite loop. Firefox infinitely retries to login with the
wrong password. This repeats with the webserver demo easily.
The same happens here with IE8beta
Heiko Sommerfeldt wrote:
The same happens here with IE8beta too.
Therefore I answer with 403 after such failed login.
It's a bug in THttpServer :(
[..]
RFC 2617 HTTP Authentication June 1999
stale
A flag, indicating that the previous request from the
The previous fix was not yet OK since it never forced a new nonce.
The change below should be safer since a new nonce is forced after
its lifetime expired. I hope I understood the stale parameter
correctly now.
in (OverbyteIcs)HttpSrv.pas,
function THttpConnection.AuthDigestGetParams: Boolean;
Hi,
that solves my problems! There is no loop when wrong login parameters
are used.
Thanks a lot!
Can this mechanism be used to enforce a logout? My web site should have
a logout/new login link. When this link is activated, the browser
should ask for new login credentials.
Heiko
The previous
Hi,
I am using THttpServer with digest authentication and it works well.
What I need is a logout, so the user (browser) needs a new login. As
long I don't close the browser the same digest information is sent by
the browser and authentication is successful.
Is there a way to force the browser to
Lars Gehre wrote:
Hi,
Fixed responses and an infinite loop when a byte-range-set
was unsatisfiable. Added a fix for content ranges with files
2GB as suggested by Lars Gehre l...@dvbviewer.com.
Replaced symbol UseInt64ForHttpRange by STREAM64.
--
Arno Garrels [TeamICS]
Sorry for
Hi,
Fixed responses and an infinite loop when a byte-range-set
was unsatisfiable. Added a fix for content ranges with files
2GB as suggested by Lars Gehre l...@dvbviewer.com.
Replaced symbol UseInt64ForHttpRange by STREAM64.
--
Arno Garrels [TeamICS]
Sorry for taking so long to give
Hi,
THttpServer
---
Added Keep-Alive timeout and a maximum number
of allowed requests during persistent connections. Set property
KeepAliveTimeSec to zero in order disable this feature entirely,
otherwise persistent connections are dropped either after an idle
time of value
Changes are ICS v7 only.
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
Arno Garrels wrote:
Hi,
THttpServer
---
Added Keep-Alive timeout and a maximum number
of allowed requests during persistent connections. Set property
KeepAliveTimeSec to zero in
Hi,
Fixed responses and an infinite loop when a byte-range-set was
unsatisfiable. Added a fix for content ranges with files 2GB as
suggested by Lars Gehre [EMAIL PROTECTED].
Replaced symbol UseInt64ForHttpRange by STREAM64.
--
Arno Garrels [TeamICS]
Hi,
In order to reproduce the bug connect with THttpCli and assign the
following byte range:
ContentRangeBegin := some valid value;
ContentRangeEnd := file size;
The THttpServer will enter an infinite loop!
What I do not know is whether the range above should be treated
as a valid range or
PROTECTED]
To: twsocket twsocket@elists.org
Sent: Wednesday, June 11, 2008 10:34 AM
Subject: [twsocket] [THTTPServer] Answers blocked ?
I don't know how you send the reply (since there are several ways to do
it),
but if you don't set ContentLength correctly, then the client may wait
forever
Hi,
we are using ICS components for a Web server, developed as a windows service,
since a long time now and everything work fine.
But we just install it in a hospital and found problems concerns answers from
the web server.
Client side: sending a request through a form, then the browser
middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
- Original Message -
From: Guillaume ROQUES [EMAIL PROTECTED]
To: twsocket twsocket@elists.org
Sent: Tuesday, June 10, 2008 11:58 AM
Subject: [twsocket] [THTTPServer] Answers blocked ?
Hi
Hello Francois,
I'm trying to write a program that uses the THttpServer (ICS version 6)
component in Borland Studio.
As mentioned in one of the FAQ the use of __classid() will resolve the
problem of being unable
to assign the ClientClass of the THttpServer.
When I assign my
Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
- Original Message -
From: Albert [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Wednesday, June 20, 2007 10:32 AM
Subject: [twsocket] THttpServer
Hello Francois,
I'm trying
Hello,
I am using ICS THttpserver Component.i created a webserver .so i want to
know that does this component support ISAPI application.
waiting for your reply.
thanks regards
Avinash Kumar.
Subscribe to
I am using ICS THttpserver Component.i created a webserver .so i
want to know that does this component support ISAPI application.
Someone wrote ISAPI/CGI support. See usermade page at my website. This
code probably need a little refresh.
btw: basically ISAPI/CGI is completely against
@elists.org
Sent: Friday, September 08, 2006 8:30 AM
Subject: [twsocket] THttpServer Authentication
Hi,
I am wondering anybody here can give an example on how to build a
password protected web server using THttpServer.
I tried to setup a basic authentication for THttpServer. But it
seems
Thank you for all your help. I managed to get it work.:-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Arno Garrels
Sent: Friday, September 08, 2006 2:41 PM
To: ICS support mailing
Subject: Re: [twsocket] THttpServer Authentication
xmedia wrote
Anybody knows where I can find a web server demo that can process posted
data? For example, I want to get all data posted from a web form and save to
database. The current one came with ICS components only shows how to process
a GET request.
Any help is appreciated. Thanks.
wang
--
To
Hi,
I am wondering anybody here can give an example on how to build a password
protected web server using THttpServer.
I tried to setup a basic authentication for THttpServer. But it seems that
HttpServer1AuthGetPassword event always give an empty Password (I use
ShowMessage(Password) in C++
]
To: twsocket@elists.org
Sent: Saturday, September 02, 2006 4:07 PM
Subject: [twsocket] THTTPServer compiled by FPC on Linux
Hello, I am using Free Pascal Compiler (Lazarus IDE) and am having
trouble with the compiling anything using THTTPServer on Linux platform,
specifically Im using Fedora 5, but I
Thanks for the pointer. Im guessing the API for the Delphi and Kylix
versions are the same so all we need to do is have the different ICS
libary on each platform to successfully compile without changing source
code.
That was the goal of my Kylix port. Still there are differences mostly
Hello, I am using Free Pascal Compiler (Lazarus IDE) and am having
trouble with the compiling anything using THTTPServer on Linux platform,
specifically Im using Fedora 5, but I think it is a generic linux
problem since the error is can't find Windows unit. I'm guessing this
is a unit specific
: [twsocket] THTTPServer compiled by FPC on Linux
Hello, I am using Free Pascal Compiler (Lazarus IDE) and am having
trouble with the compiling anything using THTTPServer on Linux platform,
specifically Im using Fedora 5, but I think it is a generic linux
problem since the error is can't find
Fastream Technologies wrote:
Hello Francois and Everybody,
We (me and Peter Nikolow) worked on Digest authentication for ICS
THttpServer.
Could this be implemented so that further authentication methods
can be added easily?
Would it make sense to add NTLM support as well?
With NTLM it
20, 2006 8:44 PM
Subject: Re: [twsocket] THttpServer Digest Auth implemented with ICS
That's an interesting contribution !
Thank you.
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket
Hello Francois and Everybody,
We (me and Peter Nikolow) worked on Digest authentication for ICS
THttpServer. We used Delphi and ICS v5 (unit version 1.38) for the
httpsrv.pas and C++ for the test unit. We (fastream.com) want to donate the
code to our very community. I urge you (Francois) to
That's an interesting contribution !
Thank you.
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Friday, January 20, 2006 1:50 PM
Subject: [twsocket] THttpServer Digest Auth
SCHENCKEL [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, October 10, 2005 11:49 AM
Subject: [twsocket] ThttpServer and SOAP
Hello,
I'm using François's HttpServer and TICSIsapi component from Sven Schmidts.
I've slightly modified TICSIsapi to handle the soap
Francois Piette a écrit :
When transmit a soap request, i get the error from my
ISAPI dll : 'EDOMParse Error : An Invalid character
was found in text content'
Is it possible for you the get the invalid character ? This could give an
idea about what is
occuring. Maybe you have an accented
support mailing
Objet : [twsocket] ThttpServer and SOAP
Hello,
I'm using François's HttpServer and TICSIsapi component from Sven Schmidts.
I've slightly modified TICSIsapi to handle the soap requests (wsdl and so on).
This part is working.
But i'm facing another problem :
When transmit
[approved by Sven] changes ?
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: Frédéric SCHENCKEL [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, October 10, 2005 4:03 PM
Subject: Re: [twsocket] ThttpServer and SOAP
Hello,
I've
]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Francois Piette
Envoyé : lundi 10 octobre 2005 16:12
À : ICS support mailing
Objet : Re: [twsocket] ThttpServer and SOAP
If anyone interested in the WebInterface
are you sure? if 10 user at the same time press intro,
fired ongetdocument and using a Tdatabase-Tquery only
one of them is processing?
If you don't use multithreading yourself, the HTTP server component will
serialize requests. This is
very handy when processing for your requests is fast.
Hello Adrian,
Yes, ICS does not create threads. If you have bloking code then you can
eventually execute it in a thread, but for the communication it is not
needed.
---
Rgds, Wilfried
http://www.mestdagh.biz
Tuesday, September 13, 2005, 00:57, adrian spinetta wrote:
are you sure? if 10 user
I am making a complete webserver dinamic using the examples of createvirtualdoc.
is it ok using criticalsection inside ongetdocument to block access of a Tquery?
__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
adrian spinetta a écrit :
I am making a complete webserver dinamic using the examples of
createvirtualdoc.
is it ok using criticalsection inside ongetdocument to block access of a
Tquery?
Hello,
You have no need to use criticalsection as ICS is not thread based.
Only one onGetdocument
I am making a complete webserver dinamic using the examples of
createvirtualdoc.
is it ok using criticalsection inside ongetdocument to block access of a
Tquery?
It is not needed because the component is asynchronous. If you don't use a
thread yourself, then only one request is handled at a
are you sure? if 10 user at the same time press intro, fired ongetdocument and
using a Tdatabase-Tquery only one of them is processing?
What about Tsession,unique name, is that way?
thanks a lot.
Guillaume MAISON [EMAIL PROTECTED] escribió:
adrian spinetta a écrit :
I am making a
Oh, I guess my version was a bit old. This may be the problem.
Thanks,
SZ
- Original Message -
From: Bjrnar Nielsen [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Monday, April 18, 2005 12:13 PM
Subject: RE: [twsocket] THttpServer not complies with RFC?
I have
86 matches
Mail list logo