File: |
curl.class.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
class file curl |
Class: |
cURL Easy and Fast
Send HTTP request to remote servers using Curl |
Author: |
By Evert Ulises German Soto |
Last change: |
Added two new options: "http_header" to send authentication headers or others and "ssl_verify" to force set to false this value if you need it, ex:
$options = array(
"url" => "https://warley996.auth0.com/api/v2/users",
"data" => "plain",
"type" => "GET",
"return_transfer" => "1",
"header" => "0",
"http_header" => array(
'Content-Type: application/json; charset=utf-8',
'Authorization: Bearer eyJhbGeRMaNiJIUzI1NiIsInR5cCI6IkpXRCJ7.WarLey996WQiOiJNRzNaS3JMcGhpaVFVZ1pXWDBvUkFGSEJNMnRGZDRGciIsInNjb3BlcyI6eyJ1c2VycyI6eyJhCuLopb25zIjpbInJlYWQiXX19LCJpYXQiOjE0NjI1NTU5NzgsImp0aSI6IjdmYmM4NjEyYTM3NjdmYWRiNjQ1MDA4MTFiY2ZjYWUzIn0.d5iv9udezgWqwGjYQNKM9o3xG3Ma9W9NhoTZ1bU1Q'
)
);
$obj = new wArLeY_cURL($options);
$resp = $obj->Execute(); |
Date: |
8 years ago |
Size: |
5,419 bytes |
|
|
|