[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

[twsocket] HTTP File upload examples

2005-06-23 Thread Tom York
Does anyone have experience with the file uploading using the HTTPServer? I have a working server, but cannot seem to get the PostedData event handler working properly (mime parsing). Is there classes/functions that I can make use of in mimeutil.pas? Thanks. -- To unsubscribe or change your s

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
support mailing" Sent: Saturday, March 17, 2007 2:04 PM Subject: Re: [twsocket] Http file upload >> 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 > forma

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

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