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 helpfull

Re: [twsocket] Http file upload

2007-03-17 Thread Paul
, 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 format. Most scripts expect MIME multi-part format. You'll find sample

Re: [twsocket] Http file upload

2007-03-17 Thread Paul
Thanks Paul - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org 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

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 connected.