Some server send me data (XML or Json) on my url www.mydomain.com/url by curl. How can I receive such data? I tried make request on that url:
$body = @file_get_contents('php://input');
but in variable is empty string. Is that correct way to do that or is not?