[Lazarus] TFPHTTPServer

Michael Van Canneyt michael at freepascal.org
Thu Feb 23 11:07:52 CET 2023



On Thu, 23 Feb 2023, duilio foschi via lazarus wrote:

> I wrote a simple server using TFPHTTPServer.
>
> All incoming calls are processed using
> procedure HandleRequest(var ARequest: TFPHTTPConnectionRequest;
>         var AResponse: TFPHTTPConnectionResponse);
>
> My first tests were ok and encouraging but... how do I know if the
> call was a GET or a POST?
>
> I guess that ARequest "knows" it, but I cannot find a way to ask :)

Try ARequest.Method, this is the HTTP method string as sent by the client.

Michael.


More information about the lazarus mailing list