Re: [twsocket] Still "rassling" with sending and receiving

2006-11-22 Thread Francois PIETTE
> BTW, what is the netiquette regarding mailing lists as to snipping > previous > parts of the thread--should I cut out everything below this, or leave it > be > (leaving it be until I hear/read otherwise). You should keep just enough for everybody to understand what you are talking about. --

[twsocket] Mailing list usage

2006-11-22 Thread Francois PIETTE
To all subscribers: 1) Please do not use HTML or RTF messages in the list. Use only plain/text messages (by default Outlook uses HTML ! You must change the setting). When replying, be sure to use plain/text. If someone email to list accidently NOT in plain text and if you reply to it,

Re: [twsocket] Still "rassling" with sending and receiving

2006-11-22 Thread Clay Shannon
My bad! I fixed it by moving the line to process the msg outside of the "strip out the carriage return and line feed" loop: Was: procedure TfClientMain.ClientDataAvailable(Sender: TObject; Error: Word); var iMsgCode, iMsgTableID: Integer; begin with Sender as TTcpSrvClient do begin { Sinc

Re: [twsocket] Still "rassling" with sending and receiving

2006-11-22 Thread Clay Shannon
<> And to add to the mystery, or provide a clue, in the first instance the string message sent has a #$D appended, but in the second case it doesn't... The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged mat

Re: [twsocket] Still "rassling" with sending and receiving

2006-11-22 Thread Clay Shannon
<< My ClientDataAvailable() procedure (assigned to my TWSocketServer's OnDataAvailable() event as shown below) is firing twice--for every message I send my app from my test utility, ClientDataAvailable() gets fired twice!>> I notice in the Debug Window (BDS 2006) that the following are called, one

Re: [twsocket] Still "rassling" with sending and receiving

2006-11-22 Thread Clay Shannon
Right now, though, it's working TOO good My ClientDataAvailable() procedure (assigned to my TWSocketServer's OnDataAvailable() event as shown below) is firing twice--for every message I send my app from my test utility, ClientDataAvailable() gets fired twice! procedure TfClientMain.WSocketServer

Re: [twsocket] Posting datatoweb serverusing THttpCliunder usercontrol

2006-11-22 Thread Clay Shannon
<<> Do you see any wholes in my logic? I don't.>> Partials? The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are hereby notifie

Re: [twsocket] Posting data toweb serverusing THttpCliunder usercontrol

2006-11-22 Thread Francois Piette
> Do you see any wholes in my logic? I don't. 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 - F

Re: [twsocket] Posting data to web serverusing THttpCliunder usercontrol

2006-11-22 Thread Cosmin Prund
Francois Piette wrote: > This is proxy implementation dependent. The proxy could buffer the document > up to some point and then give up and forward everything. It could also > handle document differently according to the content-type. > > If you consider this would not happend, then it's OK for me

Re: [twsocket] Posting data to web serverusing THttpCliunder usercontrol

2006-11-22 Thread Francois Piette
> I'll re-explain how my downstream (that is - HTTP > download) connection works. The client requests a document from my web > server. It does this going through the proxy. The server response (200 > OK), does NOT send an Content-length header and starts sending the > document very very slowly, but

[twsocket] Magenta Systems IP Log Streaming Component

2006-11-22 Thread Angus Robertson - Magenta Systems Ltd
This is a new, free component for ICS V6, that dramatically simplifies the use of TWSocket and TWSocketServer, avoiding needing to understand many internals of ICS, in the same way as the FTP and HTTP components do for those protocols. I've found that many of my applications that need to send

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
Alright, found the bug myself and fixed now. It is the result := sendError <> 0; line. It should have been the opposite way... THANKS! SZ On 11/22/06, Fastream Technologies <[EMAIL PROTECTED]> wrote: > As I wrote before, the downloaded picture (from the php5ISAPI.dll) is > corrupt! Most of the p

Re: [twsocket] Posting data to web server using THttpCliunder usercontrol

2006-11-22 Thread Cosmin Prund
Francois PIETTE wrote: >> Using hgWillSendMySelf I noticed the proxy server immediately connects >> the client to the server and the connection is kept open as long as I'm >> sending data. If the proxy server does the same for the "long HTTP post" >> it would provide a very valuable tool for what I

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
As I wrote before, the downloaded picture (from the php5ISAPI.dll) is corrupt! Most of the picture is grey. On 11/22/06, Francois Piette <[EMAIL PROTECTED]> wrote: > What does "Does not work" means ? Any error, exception, symptom ? > > -- > [EMAIL PROTECTED] > http://www.overbyte.be > > - Orig

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Francois Piette
What does "Does not work" means ? Any error, exception, symptom ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, November 22, 2006 9:24 AM Subject: Re: [twsocket] TWSocket sync

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
Also, function TWebConnection.SendSync(Data: String): boolean; is never called from the modified DXISAPI. It is just for I believe the HEAD command. (I know Length(Data) can return wrong info.) Best Regards, SZ On 11/22/06, Fastream Technologies <[EMAIL PROTECTED]> wrote: > Hello, > > Could you

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Fastream Technologies
Hello, Could you look at the new code below: procedure TWebConnection.ConnectionDataSentISAPI(Sender : TObject; Error : WORD); begin sendError := Error; sendComplete := true; end; function TWebConnection.SendSync(Data: String): boolean; begin Result := SendSync(PChar(Data

Re: [twsocket] Connect, send and close

2006-11-22 Thread Francois Piette
> I need a "client" function that connects to server, > send data and close connection. You'd better design your application using the asynchronous mode which is the native mode for ICS. In short, use the events ! > Here, the result is false everytimes because the socket is never connected. This