protected function AbstractCallback::_getRawBody in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/PubSubHubbub/AbstractCallback.php \Zend\Feed\PubSubHubbub\AbstractCallback::_getRawBody()
Return the raw body of the request
Return value
string|false Raw body, or false if not present
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ AbstractCallback.php, line 280
Class
Namespace
Zend\Feed\PubSubHubbubCode
protected function _getRawBody() {
$body = file_get_contents('php://input');
if (strlen(trim($body)) == 0 && isset($GLOBALS['HTTP_RAW_POST_DATA'])) {
$body = $GLOBALS['HTTP_RAW_POST_DATA'];
}
if (strlen(trim($body)) > 0) {
return $body;
}
return false;
}