0

我正在开发 oxwall 插件。我被困在一个问题上。我需要知道如何向 url 发送 http 请求。例如 :

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 代码发送请求。它会影响插件的性能吗?

4

1 回答 1

0

我认为不存在您正在寻找的东西。您只需为此使用自定义 PHP 代码。

于 2014-05-14T17:45:07.547 回答