PHPackages                             waitman/postcheck - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. waitman/postcheck

ActiveLibrary

waitman/postcheck
=================

Check POST with CSRF

091PHP

Since Jan 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/waitman/postcheck)[ Packagist](https://packagist.org/packages/waitman/postcheck)[ RSS](/packages/waitman-postcheck/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PostCheck / PHP

This program provides a PHP class which validates POST requests.

PostCheck
=========

[](#postcheck)

1. Request made over HTTPS
2. Request made using POST
3. Valid Content-Type (application/x-www-form-urlencoded or multipart/form-data)
4. HTTP Connection type must be keep-alive (ie, not 'close')
5. Referrer must match host
6. Content Length data payload must not exceed defined limit (if no files uploaded)
7. CSRF Token check

Simple example
==============

[](#simple-example)

```
