{ $Id: header,v 1.1 2000/07/13 06:33:45 michael Exp $ This file is part of the Free Component Library (FCL) Copyright (c) 1999-2000 by the Free Pascal development team See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **********************************************************************} unit webutil; {$mode objfpc}{$H+} interface uses Classes, SysUtils, httpdefs; procedure DumpRequest (ARequest : TRequest; Dump : TStrings); implementation procedure DumpRequest (ARequest : TRequest; Dump : TStrings); Procedure AddNV(Const N,V : String); begin Dump.Add('
Header | Value |
'); // Actually sent headers Add('
Header | Value |
'); // Actually sent headers, as text Add('
Header | Value |
'); // Additional headers If (QueryFields.Count>0) then begin Add('
Name | Value |
'); end; If (Files.Count>0) then begin Add('
Name | FileName | Size | '); Add('Temp FileName | Disposition | Content-Type |
'+FieldName+' | '+FileName+' | '); Add(''+IntToStr(Size)+' | '+LocalFileName+' | '); Add(''+Disposition+' | '+ContentType+' |
'); end; end; end; end.