What Is Meant By PHP CURL And Its Uses With Definition

admin_img Posted By Bajarangi soft , Posted On 16-09-2020

cURL stands for ‘Client URL Library’ and it allows you to connect and communicate with different types of servers with many different types of protocols HTTP, https, FTP, proxy, cookies.

meaning of curl php


Meaning Of CURL

-     Curl Stand for Client URL, originally with URL Spellend in uppercase to make it obvious that it deals with URLs.
-     Frist CURL liabrary was releas in 1997. A free easy-to-use client-side URL transfer liabrary supporting FTP, TPS, HTTP, HTTPS and other then.
-     Php CURL is used in multiple languages like Php, Asp.NET etc
-     Libcurl is library which support data transfer on exclusive protocol. The module for PHP that makes it possible for PHP programs to access curl functions within PHP.


Where to Using Of Php CURL

-     php design allow you use a varity of web resources from within your php script.
-     Send Http request utilizing quite a lot of method like POST, GET.
-     Accessing to third party API systems.

 


Curl Functions
-The curl_init() function will initialize a new session and return a cURL handle.
-curl_close($ch) cloase a CURL session
-curl_copy_handle --Copy a cURL handle along with all of its preferences
-curl_exec --Perform a cURL session
-
curl_errno-- Return the last error number
-curl_error--Return a string containing the last error for the current session
-
curl_escape -- URL encodes the given string
-curl_file_create-- Create a CURLFile Object
-curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) return page contents. If set 0 then no output will be returned.
-curl_setopt($ch, option, value) set an option for a cURL session identified by the ch parameter. Option specifies which option is to set, and value specifies the value for the given option.

Related Post