I know HTTP extension is depracated in PHP 5.3 onwords. So is their any way to make a HTTP response. This is my php code in php 5.2. How to make it suitable for php 5.4.
//process the request by fetching the info
$headers = http_get_request_headers();
$result = http_get_request_body();
//do stuff with the $headers and $result variables....
//then send your response
HttpResponse::status(200);
HttpResponse::setContentType('text/xml');
HttpResponse::setHeader('From', 'ABCD');
HttpResponse::setData($sq_data);
HttpResponse::send();