Validating post php requests
With our library and its numerous extensions (HTTP, SSH, authentication, validation, request-to-class mapping and logging), development is super fast and incredibly easy.
In this post, I’d like to demonstrate how to set up a PHP based JSON-RPC API, with authentication, validation and logging.
Encapsulates request information for easy and secure access from application controllers.The request object is a simple value object that is passed between the dispatcher and controller classes. $header) Gets HTTP header from request data public get Scheme () Gets HTTP schema (http/https) public is Ajax () Checks whether request has been made using ajax public is Soap () Checks whether request has been made using SOAP public is Soap Requested () Alias of is Soap().