On Wed, 7 Oct 2009, Alexey Voytsehovich wrote:

hi.

this code

--
uses SysUtils, httpd;

function read_Post(r: Prequest_rec; data: string): boolean;
var
 types: string;
begin
 Result := True;
 if (r^.method_number <> M_POST) then
   Exit;
 ap_set_content_type(r, 'text/html');
 types := ap_table_get(r^.headers_in, 'Content-Type');
end;
--
dont compile :( say me Error: Identifier not found "ap_table_get"

help me please? sorry about stupid question

There are 3 versions of Apache distributed with FPC. Probably the compiler
is choosing the 1.3 version.

On the command-line, define one of FPCAPACHE_2_0 or FPCAPACHE_2_2 (as in 
-dFPCAPACHE_2_0)
(or delete the units in units/httpd-1.3)

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to