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


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


[twsocket] Using ICS to access Amazon S3 storage service.

2006-07-26 Thread Colin Meeks
Has anybody used ICS to upload and download files from the new Amazon S3
storage service. I'm assuning I would use ICS using the REST api as opposed
to the SOAP api. Is it just a matter of constructing REST requests using
HEAD, GET and PUT and using the HTTP ICS component?

All help appreciated.

Colin

-- 

Colin Meeks
http://www.col-boy.com

100 Gmail Accounts to give away. Apply within.
-- 
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 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