[Lazarus] Is CGIApp compatible with methods PUT and DELETE?

silvioprog silvioprog at gmail.com
Mon Dec 26 19:33:15 CET 2011


Hi,

I'm tried with two differents projects. I'm sending both projects to
test in attached.

When I try execute "http://localhost/cgi-bin/rest" with PUT (or
DELETE) method, the response of server is:

HTTP/1.1 500 Internal Server Error
Date: Mon, 26 Dec 2011 18:25:20 GMT
Server: Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8
mod_perl/2.0.4 Perl/v5.10.1
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Connection: close
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
Expires: Mon, 26 Dec 2011 18:25:20 GMT

But if I build a CGI project with WriteLn work fine. :/ Eg.

program rest;

uses
  SysUtils;

begin
  WriteLn('Content-Type: text/plain');
  WriteLn;
  WriteLn(GetEnvironmentVariable('REQUEST_METHOD'));
end.

So, is CGIApp compatible with methods PUT and DELETE?

-- 
Silvio Clécio
====================================
Site - <silvioprog.com.br>
LazSolutions - <code.google.com/p/lazsolutions>
====================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgi1.zip
Type: application/zip
Size: 1627 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111226/85a0541f/attachment-0004.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgi2.zip
Type: application/zip
Size: 2215 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111226/85a0541f/attachment-0005.zip>


More information about the Lazarus mailing list