HttpResponse::getRequestBody

(PECL pecl_http >= 0.10.0)

HttpResponse::getRequestBodyGet request body

Description

static string HttpResponse::getRequestBody ( void )

This function is an alias of: http_get_request_body().

add a note add a note

User Contributed Notes 1 note

up
1
osborn dot steven at example dot com
6 years ago
For those of you without the HTTP extension, try:
<?php
  $body
= @file_get_contents('php://input');
?>
To Top