file_get_contents returns an empty buffer
Posted: Thu Jun 19, 2008 3:53 pm
Hi,
I am using php 5.2.1
I am using the following snippet to get raw data input to my script:
This code is invoked about 30,000 every day and in 98% of the times it works fine and I get my input.
However, in a few cases, the buffer that I get is an empty string.
I know that the caller is never sending an empty string, so I am wondering what could cause such problem.
Does anyone have any idea? How would I go about debugging such problem?
regards
Jason
I am using php 5.2.1
I am using the following snippet to get raw data input to my script:
Code: Select all
$buffer = file_get_contents("php://input");
However, in a few cases, the buffer that I get is an empty string.
I know that the caller is never sending an empty string, so I am wondering what could cause such problem.
Does anyone have any idea? How would I go about debugging such problem?
regards
Jason