我正在开发oxwall插件。我被一个问题困住了。我需要知道如何发送http请求到url。例如:
1)在joomla CMS中,我们发送这样的请求,
$http = new JHttp($options, $transport);
$response = $http->post($url, $data);2)在drupal,
$options = array(
'method' => 'POST',
'data' => $data,
'timeout' => 15,
'headers' => array('Content-Type' => 'application/json'),
);
$result = drupal_http_request($url, $option);我想知道,做这件事的方法是什么,请帮助我或提示我要注意哪个图书馆。如果我找不到解决方案,可以使用自定义php代码发送请求。它会影响插件的性能吗?
发布于 2014-05-14 17:45:07
我不认为你想要的东西是存在的。您只需使用自定义PHP代码即可。
https://stackoverflow.com/questions/23261126
复制相似问题