You are here

function _restful_get_query_string_from_php_input in RESTful 7

Get the query string from php Input.

Return value

string The query string from request.

1 call to _restful_get_query_string_from_php_input()
restful_parse_request in ./restful.module
Build the request array from PHP globals and input stream.

File

./restful.module, line 820

Code

function _restful_get_query_string_from_php_input() {
  $query_string =& drupal_static(__FUNCTION__);
  if (!isset($query_string)) {

    // In php 5.6 and below php://input can only be read once.
    $query_string = file_get_contents('php://input');
  }
  return $query_string;
}