Skip to content

a php curl function , get, post, post file and get cookie from cookie_file

Notifications You must be signed in to change notification settings

lifeibest/php-curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

php-curl

a php curl function , get, post, post file and get cookie from cookie_file

Use:

$curl = new Curl();

//for get

$respone = $curl->get('http://test.com', array('key'=>'a'));

//for post

$respone = $curl->post('http://test.com', array('key'=>'a'));

// post a file

$respone = $curl->post('http://test.com', array('key'=>'a','file'=>'@'.'exist_file'), 1);

// how get the cookie from header

extractCookies(file_get_contents(_COOKIE_FILE));

About

a php curl function , get, post, post file and get cookie from cookie_file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages