I am working on oxwall plugin. I am stuck at one problem . I need to know how to send http request to url. For example :
1) In joomla CMS we send request like this,
$http = new JHttp($options, $transport);
$response = $http->post($url, $data);
2)In drupal ,
$options = array(
'method' => 'POST',
'data' => $data,
'timeout' => 15,
'headers' => array('Content-Type' => 'application/json'),
);
$result = drupal_http_request($url, $option);
I want to know , what is the oxwall way of doing this task, Please help me or hint me which library to look out. If i am unable to find the solution will it be okay to use custom php code send request . Will it affect the performance of plugin ?
I don't think there exists exactly what you are looking for. You would just use custom PHP code for this.