Re: [twsocket] Buffer overflow in SMTP

2007-03-17 Thread Arno Garrels
David Colliver wrote: > It however does look like it is my side. Check your code in OnDataAvailable events. A connection should be dropped (may be with an error response) if a client attempts to send lines longer than the receive buffer size or longer than the maximum allowed line length specified

Re: [twsocket] Buffer overflow in SMTP

2007-03-17 Thread Arno Garrels
Arno Garrels wrote: > David Colliver wrote: >> It however does look like it is my side. > > Check your code in OnDataAvailable events. > A connection should be dropped (may be with an error response) > if a client attempts to send lines longer than the receive buffer > size or longer than the maxi

[twsocket] Http file upload

2007-03-17 Thread Paul
where can I find an example for uploading a file to a webserver using httpCli ? I also want to measure the time needed to upload the file. What is the best place to start and stop timing ? OnHeaderRequestEnd ? Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto ht

Re: [twsocket] Http file upload

2007-03-17 Thread Francois PIETTE
> where can I find an example for uploading a file to a webserver using > httpCli ? That is no different than posting anything else. Pay attention to the data format. Most scripts expect MIME multi-part format. You'll find sample by searching the mailing list archive. > I also want to measure

Re: [twsocket] Http file upload

2007-03-17 Thread Arno Garrels
Francois PIETTE wrote: >> where can I find an example for uploading a file to a webserver using >> httpCli ? > > That is no different than posting anything else. Pay attention to the > data format. Most scripts expect MIME multi-part format. New TMultiPartFileReader from IcsSteams.pas may be hel

Re: [twsocket] Http file upload

2007-03-17 Thread Paul
thanks, >> What is the best place to start and stop timing ? >> OnHeaderRequestEnd ? > > OnRequestDone. onRequestdone to stop the timing, but when start the timing? Paul - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, March

Re: [twsocket] Http file upload

2007-03-17 Thread Paul
Thanks Paul - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, March 17, 2007 2:29 PM Subject: Re: [twsocket] Http file upload > Francois PIETTE wrote: >>> where can I find an example for uploading a file to a webserver using >>>

[twsocket] Free tool for Web Stress Testing

2007-03-17 Thread Fastream Technologies
Hello, After two days of somehow-hard work, I coded http://www.fastream.com/ics/WebStressTester.zip. It can generate 4000 hits/sec on local-to-local against IQ Web Server. I may give up the source as well but it is in C++ and I do not want to harm anybody's network with this tool as it could b

Re: [twsocket] Http file upload

2007-03-17 Thread Paul
I've tested with an example i found in the archives. 'Method not allowed' is returned. What am I doing wrong ? Paul function TBandwidthCheckForm.Upload:boolean; const LR= #13#10; var Buf : String; FileToSend : TMemoryStream; Boundary, FName: string; begin result:= true; FName:= '

Re: [twsocket] Http file upload

2007-03-17 Thread Francois PIETTE
>>> What is the best place to start and stop timing ? >>> OnHeaderRequestEnd ? >> >> OnRequestDone. > > onRequestdone to stop the timing, > but when start the timing? When you call Post if you want to take connection time in the count, or OnSessionConnected if you want to start when the server is

Re: [twsocket] Buffer overflow in SMTP

2007-03-17 Thread DZ-Jay
On Mar 16, 2007, at 15:51, David Colliver wrote: > It certainly looks like email addresses. I know that 4000 bytes are > unusual > but this is how a lot of software tends to suffer from exploits like > this, > as 4000 bytes is not regularly tested for. Its the responsibility of the application

[twsocket] Pause and Resume

2007-03-17 Thread Jack
I had a problem of not being able to pause the socket in a proxy type of application, when the client is sending from the local machine. I tried both Pause() and wsoNoReceiveLoop option. The socket will eventually pause, but it only happens after a few MByte data is received. I might have found t

[twsocket] New version of Web Stress Tester available with fixes

2007-03-17 Thread Fastream Technologies
Hello, The KB/sec meter now fixed. Speed is the same. GUI improved with tab orders, etc... http://www.fastream.com/ics/WebStressTester.zip Please supply feedback (i.e. feature requests). Best Regards, SZ -- To unsubscribe or change your settings for TWSocket mailing list please goto http:/