[twsocket] Unconventional use of HTTP...

2007-05-13 Thread Erik Brännlund
Hi! I'm trying to send a small JPEG- image over TWSocket directly. If I send a HTML coded page it works but not for an image. This is what I send. l.Add('HTTP/1.1 200 OK' + #13#10);// l is TStringList; l.Add('Content-Type: image/jpeg' + #13#10); l.Add('Content-Length: ' + IntToSt

Re: [twsocket] TFtpServ that uses FTP user's Windowsaccountsecurity context

2007-05-13 Thread Arno Garrels
Fastream Technologies wrote: > Not yet. Having personal problems these days.. :(( I uploaded a new version with some common improvements and fixes. There's a new option to hide the physical path, see Menu | Options. http://www.duodata.de/misc/delphi/OverbyteIcsFtpServ.zip HomeDir is hardcoded C

Re: [twsocket] Unconventional use of HTTP...

2007-05-13 Thread Arno Garrels
Erik Brännlund wrote: > Hi! > > I'm trying to send a small JPEG- image over TWSocket directly. If I > send a HTML coded page it works but not for an image. > > This is what I send. > > l.Add('HTTP/1.1 200 OK' + #13#10);// l is TStringList; > l.Add('Content-Type: image/jpeg' + #13#10)

Re: [twsocket] Unconventional use of HTTP...

2007-05-13 Thread DZ-Jay
On May 13, 2007, at 05:45, Erik Brännlund wrote: > Hi! > > I'm trying to send a small JPEG- image over TWSocket directly. If I > send a > HTML coded page it works but not for an image. > > This is what I send. > > l.Add('HTTP/1.1 200 OK' + #13#10);// l is TStringList; > l.Add('Conten

[twsocket] HttpServ fixed

2007-05-13 Thread Paul
Fixed the problem I had with one server compiled with V5h Bjornar added this line at several places : if FKeepAlive = FALSE then {Bjornar} <-- added CloseDelayed; This particular server needs to answer other clients directly within the OnGetDocument event of another client. I

[twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Markus Humm
Hello, I've tested one of my ideas for making SmtpCli working for me now. I've constructed a thread which will do the sending of the mail and thus does a thread attach/detach and has its own message loop. It also knows the threadid of the main program so it posts a message to it when the thread

Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Wilfried Mestdagh
Hello Markus, Looks ok at first sight. But wy not create / destroy the component in the thread's Execute ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, May 13, 2007, 16:25, Markus Humm wrote: > Hello, > I've tested one of my idea

Re: [twsocket] HttpServ fixed

2007-05-13 Thread Francois PIETTE
> {$IFNDEF NO_KEEPALIVE_CLOSE_CHECK} >if FKeepAlive = FALSE then {Bjornar} > {$ENDIF} >CloseDelayed; There are a lot of places where " if FKeepAlive = FALSE then {Bjornar}" code is. Do have changed all ? Why not act where FKeepAlive is assigned instead instead of where it is

Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Francois PIETTE
> The thread also has a Cancel method which sends a special message to the > thread which also makes it leave his message loop and does a abort on > the control socket of the smtpcli and on the smtpcli. Instead of wm_mailcancel, you can use standard WM_QUIT which makes GetMessage return false so

Re: [twsocket] HttpServ fixed

2007-05-13 Thread Paul
Changed them all > Why not act where FKeepAlive is assigned instead instead of where it is > used Wasn't sure that would work different in other places. I can't test the service locally and the downtime of those servers have to be an abolute minimum Paul - Original Message - From: "Fra

Re: [twsocket] HttpServ fixed

2007-05-13 Thread Francois PIETTE
Looking at all use of FKeepAlive, I think it is better to always set FKeepAlive to false where it is assigned. This will add the header lines accordingly in the answer. looks more consistent to me. btw: Shouldn't you act on the client side in your application and set keep-alive to 'close' (prop

Re: [twsocket] HttpServ fixed

2007-05-13 Thread Paul
Can check this next week maybe. A proxy has it's own connection that can be keep-alive. There should be no problem though, it's been tested with V3 even thru SSL proxy's like the bluecoat proxy which does SSL filtering Paul - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTE

Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Arno Garrels
You need to handle exceptions, although this can be done in many different ways the following (scribbled in OE) may show one possible way: procedure TThreadedMail.Execute; var msg:TMsg; IsMessage : Boolean; begin try mainform.SmtpCli.ThreadAttach; try mainf

[twsocket] FTP Timeout on LAN

2007-05-13 Thread Allan Fernandes
Hi, Sorry, I forgot to put a subject during the last post. >> On a LAN even if there is no FTPServer active the >> FTPClient takes 20 secs to timeout. I changed Timeout >> from 15 to 2 to no avail. I use FTPClient1.OpenAsync. > Try with FtpTst sample program. > Try with Windows command line.

Re: [twsocket] FTP Timeout on LAN

2007-05-13 Thread Francois Piette
> > Try with FtpTst sample program. > > Try with Windows command line. > On one machine the results of > Command line timeout = 20 secs > FtpTst timeout = 20 secs. As you can see, the timeout is the same for both ICS and Windows command line utility. This means it is the default timeout impos