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
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
, 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
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
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:=
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.