curl:PHP的基本CURL包装器

时间:2021-04-12 21:59:34
【文件属性】:
文件名称:curl:PHP的基本CURL包装器
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-12 21:59:34
PHP 卷曲 PHP的基本CURL包装器(有关PHP的libcurl扩展的更多信息,请参见 ) 安装 点击上方的download链接或git clone git://github.com/shuber/curl.git 用法 初始化 只需要求并初始化Curl类,如下所示: require_once 'curl.php'; $curl = new Curl; 执行请求 Curl对象支持5种类型的请求:HEAD,GET,POST,PUT和DELETE。 您必须指定要请求的url,并可以选择指定要与之一起发送的关联数组或变量字符串。 $response = $curl->head($url, $vars = array()); $response = $curl->get($url, $vars = array()); # The Curl object will append the array
【文件预览】:
curl-master
----MIT-LICENSE(1KB)
----curl.php(117B)
----lib()
--------curl.php(7KB)
--------curl_response.php(2KB)
----README.markdown(4KB)
----test()
--------test_helper.php(1KB)
--------runner.php(385B)
--------unit()
----.gitignore(19B)

网友评论