Skip to content

Repository files navigation

cURL wrapper class for PHP

This is a PHP class to make cURL library easier to use

How to use

Following code shows how to use this class

$http = newdcai\curl;
// enable cache$http = newdcai\curl(array('cache'=>true));
// enable cookie$http = newdcai\curl(array('cookie'=>true));
// enable proxy$http = newdcai\curl(array('proxy'=>true));
// HTTP GET$response = $http->get('http://example.com');
// HTTP POST$response = $http->post('http://example.com/', array('q'=>'words', 'name'=>'moodle'));
// POST RAW$xml = '<action>perform</action>';
$response = $http->post('http://example.com/', $xml);
// HTTP PUT$response = $http->put('http://example.com/', array('file'=>'/var/www/test.txt');

Build Status

About

cURL wrapper for php

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages