当前位置: 首页>>代码示例>>PHP>>正文


PHP Curl::delete方法代码示例

本文整理汇总了PHP中Curl::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Curl::delete方法的具体用法?PHP Curl::delete怎么用?PHP Curl::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Curl的用法示例。


在下文中一共展示了Curl::delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: delete

 public function delete($resource, array $queryParams = array())
 {
     $url = $this->buildUrl($resource);
     $curl = new Curl();
     return $curl->delete($url, $queryParams);
 }
开发者ID:everlution,项目名称:rest-client,代码行数:6,代码来源:Client.php

示例2: delete

 public function delete($path, $recursive = '')
 {
     $url = $this->_buildUrl($path, array('op' => 'DELETE', 'recursive' => $recursive));
     return Curl::delete($url);
 }
开发者ID:vmanoria,项目名称:php-WebHDFS,代码行数:5,代码来源:WebHDFS.php

示例3: Curl

$url = 'http://localhost/~pandayak/curl/test.php';
if (isset($_GET['run'])) {
    require 'curl.php';
    $c = new Curl();
    //test default behavior
    $param = 'qwe';
    $test = $c->get($url, array('param' => $param));
    assert($param == $test);
    $param = 'asd';
    $test = $c->post($url, array('param' => $param));
    assert($param == $test);
    $param = 'zxc';
    $test = $c->put($url, array('param' => $param));
    assert($param == $test);
    $param = '123';
    $test = $c->delete($url, array('param' => $param));
    assert($param == $test);
    //test multi behavior w/ single requests
    $param = 'qwe';
    $test = $c->multi(array(array('get', $url, array('param' => $param))));
    assert($param == $test[0]);
    $param = 'asd';
    $test = $c->multi(array(array('post', $url, array('param' => $param))));
    assert($param == $test[0]);
    $param = 'zxc';
    $test = $c->multi(array(array('put', $url, array('param' => $param))));
    assert($param == $test[0]);
    $param = '123';
    $test = $c->multi(array(array('delete', $url, array('param' => $param))));
    assert($param == $test[0]);
    //test multi requests w/ multiple requests
开发者ID:erikeldridge,项目名称:archive,代码行数:31,代码来源:test.php


注:本文中的Curl::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。