On Thu, 28 Feb 2013, Reinier Olislagers wrote:

On 28-2-2013 10:58, Reinier Olislagers wrote:
Using fpweb, I'm trying to handle DELETE requests.

The code below works for GET calls:
GET /cgi-bin/tigercgi/document/ HTTP/1.1" 200
but gives a 500 server error for DELETE calls:
DELETE /cgi-bin/tigercgi/document/ HTTP/1.1" 500

The code doesn't even seem to hit the function:
AResponse.Contents.Add('<p>Got request method: '+ARequest.Method+'</p>');
doesn't seem to be hit.

How should I fix this?

Oh, the Apache error log shows this for for the delete requests:
Premature end of script headers: tigercgi

I am on it. Need it myself at this very moment.

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

Reply via email to