[twsocket] HTTP server...

2012-07-21 Thread zayin
Hello,

A user will be on a page. He will click a button and I will receive a URL
with some parameters. All good.

Now, I do not have a page to show him. The URL is only for passing in the
parameters. The URL for the page passing the parameters and the current page
are not the same. The URL for passing in the parameters is fixed. The URL
for the button's 'host' page is not fixed.

I want the current page in the browser to stay the same. The one with the
button.

I can answer with a redirection to the current page (the button host page).
Works but not the smoothest operation.

I was wondering if there is a better solution. Some answer code that tells
the browser the data was received but not to change page or to reload the
button host page.

Cheers,

Mark



 

--
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] HTTP server...

2012-07-21 Thread RTT

On 21-07-2012 21:22, zayin wrote:

I was wondering if there is a better solution. Some answer code that tells
the browser the data was received but not to change page or to reload the
button host page.

http://www.w3schools.com/ajax/default.asp
--
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] HTTP server...

2012-07-21 Thread zayin
Hello,

Thanks.

It looks like:  AnswerString(Flags,'204 No Content','','','');  works fine.

Ciao,

Mark

 

--
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] HTTP server component with WebDav support

2012-02-03 Thread Tobias Rapp
Hi!

I would like to extend my existing ICS-based HTTP server to allow upload
and removal of files on the server. From reading the HTTP specs at [1] it
seems that the natural commands for these actions would be PUT [2] and
DELETE [3].

Unfortunately the THttpServer/THttpConnection components do not support
these actions yet as they seem only common for HTTP servers supporting
WebDAV (at least you need to enable WebDAV in apache in order to support
these HTTP requests).

I have seen that I can set an OnUnknownRequestMethod event handler in
current versions of ICS but am unsure how to fetch the request body
transmitted by the client for PUT requests.

Has anybody done such a WebDAV-like extension of the ICS components yet? 

Regards,
Tobias

Links:
[1] http://tools.ietf.org/html/rfc2616
[2] http://tools.ietf.org/html/rfc2616#section-9.6
[3] http://tools.ietf.org/html/rfc2616#section-9.7

--
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] HTTP server component with WebDav support

2012-02-03 Thread Arno Garrels
Tobias Rapp wrote:
 Hi!
 
 I would like to extend my existing ICS-based HTTP server to allow
 upload and removal of files on the server. From reading the HTTP
 specs at [1] it seems that the natural commands for these actions
 would be PUT [2] and DELETE [3].
 
 Unfortunately the THttpServer/THttpConnection components do not
 support these actions yet as they seem only common for HTTP servers
 supporting WebDAV (at least you need to enable WebDAV in apache in
 order to support these HTTP requests).
 
 I have seen that I can set an OnUnknownRequestMethod event handler
 in current versions of ICS but am unsure how to fetch the request body
 transmitted by the client for PUT requests.

This is untested:
http://lists.elists.org/pipermail/twsocket/2012-January/044464.html

-- 
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


Re: [twsocket] HTTP Server creates extremly high CPU load

2011-07-02 Thread Lars Gehre
Thanks, I can confirm, it works now without problems.

Lars

 -Original Message-
 From: twsocket-boun...@elists.org 
 [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
 Sent: Friday, July 01, 2011 8:35 AM
 To: ICS support mailing
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Lars Gehre wrote:
  I think, I found something.
 
 Thanks for reporting, I just checked in a fix.
 Available via SVN now or included in next daily snapshot
 here: http://wiki.overbyte.be/wiki/index.php/ICS_Download
 
 --
 Arno Garrels 
 
  
  The problem seems to be the head request. Normaly you do a HEAD and 
  close the connection, but in my case it stays open and the 
 http server 
  gets stuck in an endless loop.
  
  The culprits are:
  
  procedure THttpConnection.SendDocument(SendType : 
 THttpSendType;const 
  CustomHeaders : String); and procedure 
  THttpConnection.ConnectionDataSent(Sender : TObject; Error :
  WORD);
  
  In SendDocument the fdocsize gets set to the size of the 
 stream and a
  
  if SendType = httpSendHead then
 FDocStream.Seek(0, soFromEnd)
  
  And
 if SendType = httpSendDoc then
 SendStream
 else
 Send(nil, 0); { Added 15/04/02 } // this one 
 triggers the 
  ConnectionDataSent.
  
  
  In ConnectionDataSent FDataSent = FDocSize is the end trigger but
  
  ToSend := FDocSize - FDataSent;  //fdatasent = 0
 if ToSend  FSndBlkSize then
 ToSend := FSndBlkSize;
 Count := FDocStream.Read(FDocBuf^, ToSend); // =0 because of
  FDocStream.Seek(0, soFromEnd) in SendDocument
 FDataSent := FDataSent + Count;  { Count data which is sent
  }  // 0 + 0 = 0
 if State = wsConnected then  { Be sure to be still
  connected... }
 Send(FDocBuf, Count);{ before actually send any
  data. }  // starts it all over again...
  
  Maybe a
 if (FDataSent = FDocSize) or
  (FDocStream.Position=FDocStream.Size) then begin
  
  might be a solution, but I don't know enough of the inner 
 workings of 
  the http component to foresee possible side effects...
  
  Lars
  
  
  
  -Original Message-
  From: twsocket-boun...@elists.org
  [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
  Sent: Thursday, June 30, 2011 9:49 PM
  To: 'ICS support mailing'
  Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
  
  Well I was a little to fast with my conclusion. It only happens to 
  files in the demo because they have a proper header, the virtual 
  documents only give a 404 for a HEAD request.
  
  The download is not of matter, the demo files are 500 bytes or so. 
  And the server load stays as long as the client is connected.
  
  As I said, I was able to replicate this on two different 
 machines and 
  it is not limited to local access. cross tests between the 
 machines 
  also show this behaviour.
  
  Lars
  
  
  -Original Message-
  From: twsocket-boun...@elists.org
  [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
  Sent: Thursday, June 30, 2011 3:49 PM
  To: ICS support mailing
  Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
  
  Lars Gehre wrote:
  I noticed one thing: This only happens if files are 
 involved, for 
  virtual documents it does not happen.
  
  I cannot reproduce it, 0.0% CPU here.
  I used the OverbyteIcsWebServ demo running on a Win7 quadcore.
  However if I download a file with Firefox (100 Mbit/s LAN)
  at around 6
  MB/s CPU 0 uses ~25-30% and CPU 2 8-15%, overall usage of
  the server
  process ~8-10% reported by Process Explorer.
  
  --
  Arno Garrels
  
  
  
  
  For the http server demo it means you need to open Index.html or 
  Form.html.
  
  Lars
  
  -Original Message-
  From: twsocket-boun...@elists.org
  [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
  Sent: Thursday, June 30, 2011 11:21 AM
  To: 'ICS support mailing'
  Subject: [twsocket] HTTP Server creates extremly high CPU load
  
  Hello all,
  
  I have a serious problem with the http server component from
  ICS7 (downloaded from the repository last week).
  
  I'm using the wininet api on the client side to open a (GET) 
  connection to a ICS http Server.
  For certain reasons I need to query the HEAD in 
 intervals (while 
  the other get is still in progress).
  As soon as I send the second request the CPU load of the http 
  server maxes out one CPU core.
  
  Steps to reproduce:
  
  - Run the http server demo from ics.
  
  - Download the demo
  www.dvbviewer.tv/icsproblem/icsproblem.zip source (delphi 7)
  
  - Run the demo, enter the url of the demo server and press the 
  button.
  
  - As soon as the call to GetFileSize is finished you 
 see the CPU 
  load of the webserver going up.
  
  
  I checked it on two windows 7 (multicore) machines with 
 the same 
  result.
  
  I also checked it against several other http servers 
 and none of 
  them had a problem with this kind

Re: [twsocket] HTTP Server creates extremly high CPU load

2011-07-02 Thread Arno Garrels
Lars Gehre wrote:
 Thanks, I can confirm, it works now without problems.

Thanks as well!

 
 Lars
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
 Sent: Friday, July 01, 2011 8:35 AM
 To: ICS support mailing
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Lars Gehre wrote:
 I think, I found something.
 
 Thanks for reporting, I just checked in a fix.
 Available via SVN now or included in next daily snapshot
 here: http://wiki.overbyte.be/wiki/index.php/ICS_Download
 
 --
 Arno Garrels
 
 
 The problem seems to be the head request. Normaly you do a HEAD and
 close the connection, but in my case it stays open and the
 http server
 gets stuck in an endless loop.
 
 The culprits are:
 
 procedure THttpConnection.SendDocument(SendType :
 THttpSendType;const CustomHeaders : String); and procedure
 THttpConnection.ConnectionDataSent(Sender : TObject; Error :
 WORD);
 
 In SendDocument the fdocsize gets set to the size of the
 stream and a
 
 if SendType = httpSendHead then
FDocStream.Seek(0, soFromEnd)
 
 And
if SendType = httpSendDoc then
SendStream
else
Send(nil, 0); { Added 15/04/02 } // this one
 triggers the
 ConnectionDataSent.
 
 
 In ConnectionDataSent FDataSent = FDocSize is the end trigger but
 
 ToSend := FDocSize - FDataSent;  //fdatasent = 0
if ToSend  FSndBlkSize then
ToSend := FSndBlkSize;
Count := FDocStream.Read(FDocBuf^, ToSend); // =0 because of
 FDocStream.Seek(0, soFromEnd) in SendDocument
FDataSent := FDataSent + Count;  { Count data which is sent
 }  // 0 + 0 = 0
if State = wsConnected then  { Be sure to be still
 connected... }
Send(FDocBuf, Count);{ before actually send any
 data. }  // starts it all over again...
 
 Maybe a
if (FDataSent = FDocSize) or
 (FDocStream.Position=FDocStream.Size) then begin
 
 might be a solution, but I don't know enough of the inner
 workings of
 the http component to foresee possible side effects...
 
 Lars
 
 
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
 Sent: Thursday, June 30, 2011 9:49 PM
 To: 'ICS support mailing'
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Well I was a little to fast with my conclusion. It only happens to
 files in the demo because they have a proper header, the virtual
 documents only give a 404 for a HEAD request.
 
 The download is not of matter, the demo files are 500 bytes or so.
 And the server load stays as long as the client is connected.
 
 As I said, I was able to replicate this on two different
 machines and
 it is not limited to local access. cross tests between the machines
 also show this behaviour.
 
 Lars
 
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
 Sent: Thursday, June 30, 2011 3:49 PM
 To: ICS support mailing
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Lars Gehre wrote:
 I noticed one thing: This only happens if files are
 involved, for
 virtual documents it does not happen.
 
 I cannot reproduce it, 0.0% CPU here.
 I used the OverbyteIcsWebServ demo running on a Win7 quadcore.
 However if I download a file with Firefox (100 Mbit/s LAN)
 at around 6
 MB/s CPU 0 uses ~25-30% and CPU 2 8-15%, overall usage of
 the server
 process ~8-10% reported by Process Explorer.
 
 --
 Arno Garrels
 
 
 
 
 For the http server demo it means you need to open Index.html or
 Form.html.
 
 Lars
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
 Sent: Thursday, June 30, 2011 11:21 AM
 To: 'ICS support mailing'
 Subject: [twsocket] HTTP Server creates extremly high CPU load
 
 Hello all,
 
 I have a serious problem with the http server component from
 ICS7 (downloaded from the repository last week).
 
 I'm using the wininet api on the client side to open a (GET)
 connection to a ICS http Server.
 For certain reasons I need to query the HEAD in
 intervals (while
 the other get is still in progress).
 As soon as I send the second request the CPU load of the http
 server maxes out one CPU core.
 
 Steps to reproduce:
 
 - Run the http server demo from ics.
 
 - Download the demo
 www.dvbviewer.tv/icsproblem/icsproblem.zip source (delphi 7)
 
 - Run the demo, enter the url of the demo server and press the
 button.
 
 - As soon as the call to GetFileSize is finished you
 see the CPU
 load of the webserver going up.
 
 
 I checked it on two windows 7 (multicore) machines with
 the same
 result.
 
 I also checked it against several other http servers
 and none of
 them had a problem with this kind of usage.
 
 
 Thanks
 Lars
 
 --
 To unsubscribe or change your settings for TWSocket
 mailing list
 please goto
 http://lists.elists.org

Re: [twsocket] HTTP Server creates extremly high CPU load

2011-07-01 Thread Arno Garrels
Lars Gehre wrote:
 I think, I found something.

Thanks for reporting, I just checked in a fix.
Available via SVN now or included in next daily snapshot
here: http://wiki.overbyte.be/wiki/index.php/ICS_Download

-- 
Arno Garrels 

 
 The problem seems to be the head request. Normaly you do a HEAD and
 close the connection, but in my case it stays open and the http
 server gets stuck in an endless loop.
 
 The culprits are:
 
 procedure THttpConnection.SendDocument(SendType : THttpSendType;const
 CustomHeaders : String);
 and
 procedure THttpConnection.ConnectionDataSent(Sender : TObject; Error :
 WORD);
 
 In SendDocument the fdocsize gets set to the size of the stream and a
 
 if SendType = httpSendHead then
FDocStream.Seek(0, soFromEnd)
 
 And
if SendType = httpSendDoc then
SendStream
else
Send(nil, 0); { Added 15/04/02 } // this one triggers the
 ConnectionDataSent.
 
 
 In ConnectionDataSent FDataSent = FDocSize is the end trigger but
 
 ToSend := FDocSize - FDataSent;  //fdatasent = 0
if ToSend  FSndBlkSize then
ToSend := FSndBlkSize;
Count := FDocStream.Read(FDocBuf^, ToSend); // =0 because of
 FDocStream.Seek(0, soFromEnd) in SendDocument
FDataSent := FDataSent + Count;  { Count data which is sent
 }  // 0 + 0 = 0
if State = wsConnected then  { Be sure to be still
 connected... }
Send(FDocBuf, Count);{ before actually send any
 data. }  // starts it all over again...
 
 Maybe a
if (FDataSent = FDocSize) or
 (FDocStream.Position=FDocStream.Size) then begin
 
 might be a solution, but I don't know enough of the inner workings of
 the http component to foresee possible side effects...
 
 Lars
 
 
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
 Sent: Thursday, June 30, 2011 9:49 PM
 To: 'ICS support mailing'
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Well I was a little to fast with my conclusion. It only
 happens to files in the demo because they have a proper
 header, the virtual documents only give a 404 for a HEAD request.
 
 The download is not of matter, the demo files are 500 bytes
 or so. And the server load stays as long as the client is connected.
 
 As I said, I was able to replicate this on two different
 machines and it is not limited to local access. cross tests
 between the machines also show this behaviour.
 
 Lars
 
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
 Sent: Thursday, June 30, 2011 3:49 PM
 To: ICS support mailing
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Lars Gehre wrote:
 I noticed one thing: This only happens if files are involved, for
 virtual documents it does not happen.
 
 I cannot reproduce it, 0.0% CPU here.
 I used the OverbyteIcsWebServ demo running on a Win7 quadcore.
 However if I download a file with Firefox (100 Mbit/s LAN)
 at around 6
 MB/s CPU 0 uses ~25-30% and CPU 2 8-15%, overall usage of
 the server
 process ~8-10% reported by Process Explorer.
 
 --
 Arno Garrels
 
 
 
 
 For the http server demo it means you need to open Index.html or
 Form.html.
 
 Lars
 
 -Original Message-
 From: twsocket-boun...@elists.org
 [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
 Sent: Thursday, June 30, 2011 11:21 AM
 To: 'ICS support mailing'
 Subject: [twsocket] HTTP Server creates extremly high CPU load
 
 Hello all,
 
 I have a serious problem with the http server component from
 ICS7 (downloaded from the repository last week).
 
 I'm using the wininet api on the client side to open a (GET)
 connection to a ICS http Server.
 For certain reasons I need to query the HEAD in intervals (while
 the other get is still in progress).
 As soon as I send the second request the CPU load of the http
 server maxes out one CPU core.
 
 Steps to reproduce:
 
 - Run the http server demo from ics.
 
 - Download the demo
 www.dvbviewer.tv/icsproblem/icsproblem.zip source (delphi 7)
 
 - Run the demo, enter the url of the demo server and press the
 button.
 
 - As soon as the call to GetFileSize is finished you see the CPU
 load of the webserver going up.
 
 
 I checked it on two windows 7 (multicore) machines with the same
 result.
 
 I also checked it against several other http servers and none of
 them had a problem with this kind of usage.
 
 
 Thanks
 Lars
 
 --
 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
 --
 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
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing
 list please goto
 http://lists.elists.org

Re: [twsocket] HTTP Server creates extremly high CPU load

2011-06-30 Thread Lars Gehre
I noticed one thing: This only happens if files are involved, for virtual
documents it does not happen. 

For the http server demo it means you need to open 
Index.html or Form.html.

Lars

 -Original Message-
 From: twsocket-boun...@elists.org 
 [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
 Sent: Thursday, June 30, 2011 11:21 AM
 To: 'ICS support mailing'
 Subject: [twsocket] HTTP Server creates extremly high CPU load
 
 Hello all,
 
 I have a serious problem with the http server component from 
 ICS7 (downloaded from the repository last week).
 
 I'm using the wininet api on the client side to open a (GET) 
 connection to a ICS http Server. 
 For certain reasons I need to query the HEAD in intervals 
 (while the other get is still in progress). 
 As soon as I send the second request the CPU load of the http 
 server maxes out one CPU core.
 
 Steps to reproduce:
 
 - Run the http server demo from ics.
 
 - Download the demo 
 www.dvbviewer.tv/icsproblem/icsproblem.zip source (delphi 7)
 
 - Run the demo, enter the url of the demo server and press the button.
 
 - As soon as the call to GetFileSize is finished you see the 
 CPU load of the webserver going up.
 
 
 I checked it on two windows 7 (multicore) machines with the 
 same result. 
 
 I also checked it against several other http servers and none 
 of them had a problem with this kind of usage.
 
 
 Thanks
 Lars
 
 --
 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
 

--
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] HTTP Server creates extremly high CPU load

2011-06-30 Thread Lars Gehre
Well I was a little to fast with my conclusion. It only happens to files in
the demo because they have a proper header, the virtual documents only give
a 404 for a HEAD request.

The download is not of matter, the demo files are 500 bytes or so. And the
server load stays as long as the client is connected.

As I said, I was able to replicate this on two different machines and it is
not limited to local access. cross tests between the machines also show this
behaviour.

Lars


 -Original Message-
 From: twsocket-boun...@elists.org 
 [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
 Sent: Thursday, June 30, 2011 3:49 PM
 To: ICS support mailing
 Subject: Re: [twsocket] HTTP Server creates extremly high CPU load
 
 Lars Gehre wrote:
  I noticed one thing: This only happens if files are involved, for 
  virtual documents it does not happen.
 
 I cannot reproduce it, 0.0% CPU here.
 I used the OverbyteIcsWebServ demo running on a Win7 quadcore.
 However if I download a file with Firefox (100 Mbit/s LAN) at 
 around 6 MB/s CPU 0 uses ~25-30% and CPU 2 8-15%, overall 
 usage of the server process ~8-10% reported by Process Explorer.
 
 --
 Arno Garrels
 
 
 
  
  For the http server demo it means you need to open
  Index.html or Form.html.
  
  Lars
  
  -Original Message-
  From: twsocket-boun...@elists.org
  [mailto:twsocket-boun...@elists.org] On Behalf Of Lars Gehre
  Sent: Thursday, June 30, 2011 11:21 AM
  To: 'ICS support mailing'
  Subject: [twsocket] HTTP Server creates extremly high CPU load
  
  Hello all,
  
  I have a serious problem with the http server component from
  ICS7 (downloaded from the repository last week).
  
  I'm using the wininet api on the client side to open a (GET)
  connection to a ICS http Server.
  For certain reasons I need to query the HEAD in intervals
  (while the other get is still in progress).
  As soon as I send the second request the CPU load of the http
  server maxes out one CPU core.
  
  Steps to reproduce:
  
  - Run the http server demo from ics.
  
  - Download the demo
  www.dvbviewer.tv/icsproblem/icsproblem.zip source (delphi 7)
  
  - Run the demo, enter the url of the demo server and press the
  button. 
  
  - As soon as the call to GetFileSize is finished you see the
  CPU load of the webserver going up.
  
  
  I checked it on two windows 7 (multicore) machines with the
  same result.
  
  I also checked it against several other http servers and none
  of them had a problem with this kind of usage.
  
  
  Thanks
  Lars
  
  --
  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
 --
 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
 

--
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] HTTP Server PUT command support

2009-06-07 Thread Fastream Technologies
Any idea for below question? ;)

TIA,

SZ


On 6/6/09, Fastream Technologies ga...@fastream.com wrote:

 Hello,

 I wonder why this PUT command is not supported by the web server component?
 Isn't it exactly the same as POST except the method name? Or maybe there is
 a trick I need to know??

 Best Regards,

 SZ

--
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] HTTP Server PUT command support

2009-06-06 Thread Fastream Technologies
Hello,

I wonder why this PUT command is not supported by the web server component?
Isn't it exactly the same as POST except the method name? Or maybe there is
a trick I need to know??

Best Regards,

SZ
--
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] HTTP Server seems not to listen sometime

2006-11-09 Thread Francois Piette
   I do have a problem with ICS HTTP server I am not able to solve. My
   application is ruinning all the time. The server refuses to answer
   some time. It happened irregulary - mostly once in one month so it's
   pretty dificuly to catch ... There is 401 error message on the client
   side trying to get any documents. When it happen not all connections
   are closed - this is the only information I have.
   I would appreciate any help where and how to search the reason of
   freezing of a server...

  401 error doesn't mean the server doesn't listen anymore but that
  authentication failed. Check the code you have in the OnAuthXYZ events.

 I am sorry, I was mistaken. The error is 404 of course.

No problem. 404 doesn't means the server doesn't listen anymore. It means
the server can't access the resource pointed by the URL used by the client.
If the serveur doesn't listen anymore, you get error 10061. The 404 response
is generated by the HTTP server component if it can't find the requested
document or - if you are using dynamic pages - when you event handler
generate that answer.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be



- Original Message - 
From: Igor Pokorny [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, November 06, 2006 11:53 PM
Subject: Re: [twsocket] HTTP Server seems not to listen sometime


 Hello Francois,

 I am sorry, I was mistaken. The error is 404 of course.
 Igor

 On 11/5/06, Francois PIETTE [EMAIL PROTECTED] wrote:
  401 error doesn't mean the server doesn't listen anymore but that
  authentication failed. Check the code you have in the OnAuthXYZ events.
 
 
  --
  Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
  --
  [EMAIL PROTECTED]
  http://www.overbyte.be
 
 
 
  - Original Message -
  From: Igor Pokorny [EMAIL PROTECTED]
  To: ICS support mailing twsocket@elists.org
  Sent: Sunday, November 05, 2006 1:46 AM
  Subject: [twsocket] HTTP Server seems not to listen sometime
 
 
   Hello guys,
  
   I do have a problem with ICS HTTP server I am not able to solve. My
   application is ruinning all the time. The server refuses to answer
   some time. It happened irregulary - mostly once in one month so it's
   pretty dificuly to catch ... There is 401 error message on the client
   side trying to get any documents. When it happen not all connections
   are closed - this is the only information I have.
   I would appreciate any help where and how to search the reason of
   freezing of a server...
   Thank you
  
   Igor
   --
   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
 
  --
  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
 
 -- 
 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

-- 
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] HTTP Server seems not to listen sometime

2006-11-08 Thread Igor Pokorny
Hello Francois,

I am sorry, I was mistaken. The error is 404 of course.
Igor

On 11/5/06, Francois PIETTE [EMAIL PROTECTED] wrote:
 401 error doesn't mean the server doesn't listen anymore but that
 authentication failed. Check the code you have in the OnAuthXYZ events.


 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be



 - Original Message -
 From: Igor Pokorny [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Sunday, November 05, 2006 1:46 AM
 Subject: [twsocket] HTTP Server seems not to listen sometime


  Hello guys,
 
  I do have a problem with ICS HTTP server I am not able to solve. My
  application is ruinning all the time. The server refuses to answer
  some time. It happened irregulary - mostly once in one month so it's
  pretty dificuly to catch ... There is 401 error message on the client
  side trying to get any documents. When it happen not all connections
  are closed - this is the only information I have.
  I would appreciate any help where and how to search the reason of
  freezing of a server...
  Thank you
 
  Igor
  --
  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

 --
 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

-- 
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] HTTP Server upload prgress bar

2006-11-05 Thread Fastream Technologies
Alright thanks.

- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, November 04, 2006 8:16 PM
Subject: Re: [twsocket] HTTP Server upload prgress bar


: : I want the browser to display a upload progress bar while
:  :  an HTTP file upload is taking place.
::
:  : while the browser is busy uploading the file, you may have another
:  browser
:  : window (a popup window) updated on a regular basis either purely 
locally
:  : using javascript (not sure you have access to file size) or using
:  : xmlhttprequest object (that is some Ajax technology) to request the
:  : information from the server. The server being able to get upload size
:  from
:  : content-length header line, if the client sent it in the first place
:  (I'm
:  : not sure it is sent but you can easily check for that).
:
:  So to summarize:
:  Can we know how many byte have been uploaded at a given on the client 
side
:  (using javascript)?
:  Can we know file size being uploaded at a given on the client side 
(using
:  javascript)?
:
: I don't know. Have a look at some javascript reference manuel. Or ask in a
: Javascript newsgroup. It is quite out of topic here.
:
: --
: Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
: --
: [EMAIL PROTECTED]
: http://www.overbyte.be
:
:
: -- 
: 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 

-- 
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] HTTP Server seems not to listen sometime

2006-11-05 Thread Francois PIETTE
401 error doesn't mean the server doesn't listen anymore but that 
authentication failed. Check the code you have in the OnAuthXYZ events.


--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be



- Original Message - 
From: Igor Pokorny [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Sunday, November 05, 2006 1:46 AM
Subject: [twsocket] HTTP Server seems not to listen sometime


 Hello guys,

 I do have a problem with ICS HTTP server I am not able to solve. My
 application is ruinning all the time. The server refuses to answer
 some time. It happened irregulary - mostly once in one month so it's
 pretty dificuly to catch ... There is 401 error message on the client
 side trying to get any documents. When it happen not all connections
 are closed - this is the only information I have.
 I would appreciate any help where and how to search the reason of
 freezing of a server...
 Thank you

 Igor
 -- 
 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 

-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread Francois PIETTE
 Let me rephrase: while uploading the file, I want to show a progress bar 
 in
 HTML but do not know how to do it right now. It needs to update every
 second!

You have a HTTP client (Is it a browser or a program with ICS HTTP client 
component) which upload a file to a HTTP server built using ICS HHTP server 
component.

You want to have, at client side where a HTML page is shown, a progress bar 
displayed while the upload is occuring.

Is that your problem ?

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread Fastream Technologies
I want the browser to display a upload progress bar while an HTTP file 
upload is taking place.

Thank you,

SubZero

- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, November 04, 2006 10:12 AM
Subject: Re: [twsocket] HTTP Server upload prgress bar


: Let me rephrase: while uploading the file, I want to show a progress bar
:  in
:  HTML but do not know how to do it right now. It needs to update every
:  second!
:
: You have a HTTP client (Is it a browser or a program with ICS HTTP client
: component) which upload a file to a HTTP server built using ICS HHTP 
server
: component.
:
: You want to have, at client side where a HTML page is shown, a progress 
bar
: displayed while the upload is occuring.
:
: Is that your problem ?
:
: --
: Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
: --
: [EMAIL PROTECTED]
: http://www.overbyte.be
:
:
: -- 
: 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 

-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread Francois PIETTE
I want the browser to display a upload progress bar while
 an HTTP file upload is taking place.

hile the browser is busy uploading the file, you may have another browser 
window (a popup window) updated on a regular basis either purely locally 
using javascript (not sure you have access to file size) or using 
xmlhttprequest object (that is some Ajax technology) to request the 
information from the server. The server being able to get upload size from 
content-length header line, if the client sent it in the first place (I'm 
not sure it is sent but you can easily check for that).

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be




- Original Message - 
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, November 04, 2006 11:01 AM
Subject: Re: [twsocket] HTTP Server upload prgress bar


I want the browser to display a upload progress bar while an HTTP file
 upload is taking place.

 Thank you,

 SubZero

 - Original Message - 
 From: Francois PIETTE [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Saturday, November 04, 2006 10:12 AM
 Subject: Re: [twsocket] HTTP Server upload prgress bar


 : Let me rephrase: while uploading the file, I want to show a progress 
 bar
 :  in
 :  HTML but do not know how to do it right now. It needs to update every
 :  second!
 :
 : You have a HTTP client (Is it a browser or a program with ICS HTTP 
 client
 : component) which upload a file to a HTTP server built using ICS HHTP
 server
 : component.
 :
 : You want to have, at client side where a HTML page is shown, a progress
 bar
 : displayed while the upload is occuring.
 :
 : Is that your problem ?
 :
 : --
 : Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 : --
 : [EMAIL PROTECTED]
 : http://www.overbyte.be
 :
 :
 : -- 
 : 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

 -- 
 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 

-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread DZ-Jay

On Nov 4, 2006, at 05:01, Fastream Technologies wrote:

 I want the browser to display a upload progress bar while an HTTP file
 upload is taking place.

But when you say browser, do you mean an ICS HttpCli application, or 
just a regular web browser (such as MSIE, Firefox, etc.)?  If the 
latter, I don't think there is much you can do, as an HTTP file 
upload is actually a POST request, which the browser handles itself -- 
unless you are performing it through other means.  In any case, it is 
out of the scope of this list.

dZ.

-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread Fastream Technologies
- Original Message - 
From: DZ-Jay [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, November 04, 2006 3:57 PM
Subject: Re: [twsocket] HTTP Server upload prgress bar


:
: On Nov 4, 2006, at 05:01, Fastream Technologies wrote:
:
:  I want the browser to display a upload progress bar while an HTTP file
:  upload is taking place.
:
: But when you say browser, do you mean an ICS HttpCli application, or
: just a regular web browser (such as MSIE, Firefox, etc.)?  If the
: latter, I don't think there is much you can do, as an HTTP file
: upload is actually a POST request, which the browser handles itself -- 
: unless you are performing it through other means.  In any case, it is
: out of the scope of this list.

Yes Internet Explorer and FireFox. I have seen some sites such as 
rapidshare.de doing this.

I think it is in the scope of this list as THttpServer demo promotes the 
idea of creating dynamic pages with Delphi/BCB.

Best Regards,

SZ 

-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread DZ-Jay

On Nov 4, 2006, at 10:49, Fastream Technologies wrote:

 So to summarize:
 Can we know how many byte have been uploaded at a given on the client 
 side
 (using javascript)?

No.  An HTTP Upload is just a POST request, which the browser handles 
itself.  JavaScript only offers an API for client-side scripting.  
There may be browser-specific proprietary extensions to this, but they 
are not standard.  If you want to have control over it, then you may 
initiate an external asynchroneous request by using JavaScript to 
communicate with the server, or some plug-in component, but then you're 
on your own: you'll have to handle it yourself from scratch.

 Can we know file size being uploaded at a given on the client side 
 (using
 javascript)?

No.  JavaScript provides an API for client-side scripting, and POST/GET 
requests are transport mechanisms governed by the the browser at low 
levels using HTTP.  See above.

There are ways to do what you want, but they involve a lot more than 
just an HTTP upload:  Dynamic HTML, AJAX, plug-ins, and other 
frameworks (such as Flash, etc.)  And any of them requires basically a 
full custom solution.  In any case, it is out of the scope of this 
mailing list (unless you build your plug-in using ICS, of course).

dZ.


-- 
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] HTTP Server upload prgress bar

2006-11-04 Thread Francois PIETTE
 : I want the browser to display a upload progress bar while
 :  an HTTP file upload is taking place.
:
 : while the browser is busy uploading the file, you may have another 
 browser
 : window (a popup window) updated on a regular basis either purely locally
 : using javascript (not sure you have access to file size) or using
 : xmlhttprequest object (that is some Ajax technology) to request the
 : information from the server. The server being able to get upload size 
 from
 : content-length header line, if the client sent it in the first place 
 (I'm
 : not sure it is sent but you can easily check for that).

 So to summarize:
 Can we know how many byte have been uploaded at a given on the client side
 (using javascript)?
 Can we know file size being uploaded at a given on the client side (using
 javascript)?

I don't know. Have a look at some javascript reference manuel. Or ask in a 
Javascript newsgroup. It is quite out of topic here.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
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


[twsocket] HTTP Server upload prgress bar

2006-11-03 Thread Fastream Technologies
Hello,

I think this was asked before but we still do not have sufficient info: 
Which HTTP header combination would be used for showing a progress bar for 
HTTP file uploads? I mean how does it work?

Best Regards,

SZ 

-- 
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] HTTP Server upload prgress bar

2006-11-03 Thread Francois PIETTE
Content-Length.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Friday, November 03, 2006 4:09 PM
Subject: [twsocket] HTTP Server upload prgress bar


 Hello,

 I think this was asked before but we still do not have sufficient info:
 Which HTTP header combination would be used for showing a progress bar for
 HTTP file uploads? I mean how does it work?

 Best Regards,

 SZ

 -- 
 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 

-- 
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] Http Server problem

2006-07-27 Thread Jose Alberto Ortega Rojas
Bjørnar

HHHEEYY now work fine, and the connection is live for next pettitions,
thanks

why in the webserver sample not work with this function? is new for me,
maebe because my original components are very old and this new version for
me contains many new things

thanks for all

Alberto Ortega
Tampico, Tamps, MEXICO



- Original Message - 
From: Bjørnar Nielsen [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Thursday, July 27, 2006 3:10 AM
Subject: Re: [twsocket] Http Server problem


If you want to use keepalive and don't close the connection after the post,
you need to call PostedDataReceived on the connection (after all posted data
is received) to be able to handle more requests on the same connection.
Maybe this explains why nothing happens after the post when you click
another link?

Regards Bjørnar

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE
 Sent: 26. juli 2006 21:08
 To: ICS support mailing
 Subject: Re: [twsocket] Http Server problem

  version that i download in 2004, but when change to ICS V5
 i see that
  my

 Probably the support of HTTP V1.1 make the difference.
 Usually when the client wait forever, it is because using
 HTTP 1.1 you have a mismatch between ContentLength and the
 actual content size (smaller) sent by your server. With HTTP
 1.0, this doesn't affect the client because the connection is
 closed when the reply is sent while with HTTP 1.1, the
 connection is kept open and so the client wait forever for
 data which will never arrive.

 So you must check you code to make sure ContentLength and
 actual data size sent are exactly the same.

 A sniffer or SocketSpy (see UserMade page) could help you
 verify that ContentLength and actual data size matches.

 --
 Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be



 - Original Message -
 From: Jose Alberto Ortega Rojas [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Wednesday, July 26, 2006 8:15 PM
 Subject: Re: [twsocket] Http Server problem


  Hi  Francois
  thanks by your answer
 
  i test and, in the call stack window only show,
  Tapplication.HandleMessage
  Tapplication.Run
  cobhttpd (my application name)
 
  i do the following, in the eventHttpServer1HttpRequestDone i put
THttpConnection(Client).Close;
  and try,  and my explorer now work fine, but i dont know if
 i do some
  incorrect calling CLOSE manually for the client socket
  this is correct?
 
  i have building a litle webserver based in your webserver
 sample for work
  like server application for run CGI for COBOL, until now
 work with a ICS
  version that i download in 2004, but when change to ICS V5
 i see that my
  clients connect data always are connected and close after
 several minutes,
  i
  don't understand why
 
  Thanks by all
 
  Alberto Ortega
  Tampico Tamps, MEXICO
 
 
  - Original Message - 
  From: Francois PIETTE [EMAIL PROTECTED]
  To: ICS support mailing twsocket@elists.org
  Sent: Wednesday, July 26, 2006 10:57 AM
  Subject: Re: [twsocket] Http Server problem
 
 
   My server receive the form data, and process external
   programs WIN32 EXE's with this data, it could be the reason?
 
  Probably not but it depends on your code.
  When the client is waiting for ever, using Delphi
 debugger, pause the
  program and look at the call stack to know where it is and try to
  understand
  why it loops forever.
  Have you tested the demo ? It also has a form for posting data.
 
  --
  Contribute to the SSL Effort. Visit
 http://www.overbyte.be/eng/ssl.html
  --
  [EMAIL PROTECTED]
  http://www.overbyte.be
 
 
 
  - Original Message - 
  From: Jose Alberto Ortega Rojas [EMAIL PROTECTED]
  To: ICS support mailing twsocket@elists.org
  Sent: Wednesday, July 26, 2006 5:37 PM
  Subject: [twsocket] Http Server problem
 
 
   Hi, this is my first post and have bad english, sorry
  
   i have a tiny webserver app, with ics, yesterday update the ics
  component
   suite to V5, but my server work strange
   when i send a a FORM request, my client explorer   it
 remains waiting
  for
   as
   if never it finished
   and when i click in another link, my webserver never
 receive the new
   request
  
   My server receive the form data, and process external
 programs WIN32
  EXE's
   with this data, it could be the reason?
  
   Thanks
  
   Alberto Ortega
   Tampico, Tamps. MEXICO
   -- 
   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
 
  -- 
  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
  -- 
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://www.elists.org

[twsocket] Http Server problem

2006-07-26 Thread Jose Alberto Ortega Rojas
Hi, this is my first post and have bad english, sorry

i have a tiny webserver app, with ics, yesterday update the ics component
suite to V5, but my server work strange
when i send a a FORM request, my client explorer   it remains waiting for as
if never it finished
and when i click in another link, my webserver never receive the new request

My server receive the form data, and process external programs WIN32 EXE's
with this data, it could be the reason?

Thanks

Alberto Ortega
Tampico, Tamps. MEXICO
-- 
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] Http Server problem

2006-07-26 Thread Jose Alberto Ortega Rojas
Hi  Francois
thanks by your answer

i test and, in the call stack window only show,
Tapplication.HandleMessage
Tapplication.Run
cobhttpd (my application name)

i do the following, in the eventHttpServer1HttpRequestDone i put
   THttpConnection(Client).Close;
and try,  and my explorer now work fine, but i dont know if i do some
incorrect calling CLOSE manually for the client socket
this is correct?

i have building a litle webserver based in your webserver sample for work
like server application for run CGI for COBOL, until now work with a ICS
version that i download in 2004, but when change to ICS V5 i see that my
clients connect data always are connected and close after several minutes, i
don't understand why

Thanks by all

Alberto Ortega
Tampico Tamps, MEXICO


- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, July 26, 2006 10:57 AM
Subject: Re: [twsocket] Http Server problem


  My server receive the form data, and process external
  programs WIN32 EXE's with this data, it could be the reason?

 Probably not but it depends on your code.
 When the client is waiting for ever, using Delphi debugger, pause the
 program and look at the call stack to know where it is and try to
understand
 why it loops forever.
 Have you tested the demo ? It also has a form for posting data.

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be



 - Original Message - 
 From: Jose Alberto Ortega Rojas [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Wednesday, July 26, 2006 5:37 PM
 Subject: [twsocket] Http Server problem


  Hi, this is my first post and have bad english, sorry
 
  i have a tiny webserver app, with ics, yesterday update the ics
component
  suite to V5, but my server work strange
  when i send a a FORM request, my client explorer   it remains waiting
for
  as
  if never it finished
  and when i click in another link, my webserver never receive the new
  request
 
  My server receive the form data, and process external programs WIN32
EXE's
  with this data, it could be the reason?
 
  Thanks
 
  Alberto Ortega
  Tampico, Tamps. MEXICO
  -- 
  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

 -- 
 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
-- 
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] Http Server problem

2006-07-26 Thread Francois PIETTE
 version that i download in 2004, but when change to ICS V5 i see that my

Probably the support of HTTP V1.1 make the difference.
Usually when the client wait forever, it is because using HTTP 1.1 you have 
a mismatch between ContentLength and the actual content size (smaller) sent 
by your server. With HTTP 1.0, this doesn't affect the client because the 
connection is closed when the reply is sent while with HTTP 1.1, the 
connection is kept open and so the client wait forever for data which will 
never arrive.

So you must check you code to make sure ContentLength and actual data size 
sent are exactly the same.

A sniffer or SocketSpy (see UserMade page) could help you verify that 
ContentLength and actual data size matches.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be



- Original Message - 
From: Jose Alberto Ortega Rojas [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, July 26, 2006 8:15 PM
Subject: Re: [twsocket] Http Server problem


 Hi  Francois
 thanks by your answer

 i test and, in the call stack window only show,
 Tapplication.HandleMessage
 Tapplication.Run
 cobhttpd (my application name)

 i do the following, in the eventHttpServer1HttpRequestDone i put
   THttpConnection(Client).Close;
 and try,  and my explorer now work fine, but i dont know if i do some
 incorrect calling CLOSE manually for the client socket
 this is correct?

 i have building a litle webserver based in your webserver sample for work
 like server application for run CGI for COBOL, until now work with a ICS
 version that i download in 2004, but when change to ICS V5 i see that my
 clients connect data always are connected and close after several minutes, 
 i
 don't understand why

 Thanks by all

 Alberto Ortega
 Tampico Tamps, MEXICO


 - Original Message - 
 From: Francois PIETTE [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Wednesday, July 26, 2006 10:57 AM
 Subject: Re: [twsocket] Http Server problem


  My server receive the form data, and process external
  programs WIN32 EXE's with this data, it could be the reason?

 Probably not but it depends on your code.
 When the client is waiting for ever, using Delphi debugger, pause the
 program and look at the call stack to know where it is and try to
 understand
 why it loops forever.
 Have you tested the demo ? It also has a form for posting data.

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be



 - Original Message - 
 From: Jose Alberto Ortega Rojas [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Wednesday, July 26, 2006 5:37 PM
 Subject: [twsocket] Http Server problem


  Hi, this is my first post and have bad english, sorry
 
  i have a tiny webserver app, with ics, yesterday update the ics
 component
  suite to V5, but my server work strange
  when i send a a FORM request, my client explorer   it remains waiting
 for
  as
  if never it finished
  and when i click in another link, my webserver never receive the new
  request
 
  My server receive the form data, and process external programs WIN32
 EXE's
  with this data, it could be the reason?
 
  Thanks
 
  Alberto Ortega
  Tampico, Tamps. MEXICO
  -- 
  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

 -- 
 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
 -- 
 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 

-- 
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


[twsocket] Http server / http client

2006-03-14 Thread Jørgen Bonde
I have made an HTTP server application which on request, get the data from a
HTTPclient.

Sometimes if the data from the HTTP client is ‘ slow’ ( Getting the data
from a GPRS station) the server disconnect before all data 

Has been collected via the http client. Is there a way to increase the time
before the server disconnect ??

Thank’s Joergen

-- 
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] Http server / http client

2006-03-14 Thread Fastream Technologies
Hello Jorgen,

I came accross the same problem with our reverse proxy 
(http://www.fastream.com/iqreverseproxy.htm). The solution is to pause() the 
THttpConnection and resume when you get the data. We make it for each 
packet.

Regards,

SZ

- Original Message - 
From: Jørgen Bonde [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, March 14, 2006 2:05 PM
Subject: [twsocket] Http server / http client


I have made an HTTP server application which on request, get the data from a
HTTPclient.

Sometimes if the data from the HTTP client is ' slow' ( Getting the data
from a GPRS station) the server disconnect before all data

Has been collected via the http client. Is there a way to increase the time
before the server disconnect ??

Thank's Joergen

-- 
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 

-- 
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] Http server / http client

2006-03-14 Thread Jørgen Bonde
Thanks for Your answer. But I do not understand.

Is it the Httpserver You pause ?? - Is the  Pause and resume a properties of
the Thttpclient or Thttpserver ??


TelTecnic A/S
Att.: Joergen Bonde
Rudolfgaardsvej 19
DK-8260 Viby J
Tlf: +45 23 20 24 03
Mailto: [EMAIL PROTECTED] 


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På
vegne af Fastream Technologies
Sendt: 14. marts 2006 14:09
Til: ICS support mailing
Emne: Re: [twsocket] Http server / http client

Hello Jorgen,

I came accross the same problem with our reverse proxy 
(http://www.fastream.com/iqreverseproxy.htm). The solution is to pause() the

THttpConnection and resume when you get the data. We make it for each 
packet.

Regards,

SZ

- Original Message - 
From: Jørgen Bonde [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, March 14, 2006 2:05 PM
Subject: [twsocket] Http server / http client


I have made an HTTP server application which on request, get the data from a
HTTPclient.

Sometimes if the data from the HTTP client is ' slow' ( Getting the data
from a GPRS station) the server disconnect before all data

Has been collected via the http client. Is there a way to increase the time
before the server disconnect ??

Thank's Joergen

-- 
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 

-- 
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


-- 
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