請問如何用IdHTTP來接收檔案 |
尚未結案
|
apple12
一般會員 發表:28 回覆:23 積分:10 註冊:2003-05-10 發送簡訊給我 |
請問如何用IdHTTP來接收檔案,已查過Help,似乎只可以用Get / Put,我想做到似以下
procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo); begin if ARequestInfo.Command = 'GET' then //Get - client download file exportfile(AContext, ARequestInfo, AResponseInfo) else if ARequestInfo.Command = 'POST' then //import file from client importfile(AContext, ARequestInfo, AResponseInfo); end; |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |