Friday, March 2, 2012

Curl Using PHP in a Gist

cURL: It is  a client that deals with URL so its named as cURL so as to say that it deals with URL only 

It is used to make client communicate with the server using command line 
arguments using cURL syntax

Its main use is to provide security to the URL's sent through the browser to the server
 
 The main commands in cURL  which i found is important are


1. curl_init() - with which the main curl operation starts

2.curl_setop($charecter,options,value)


                    $charecter = curl handle returned by curl_initi()


           options = curl provides various options with general syntax 

curlOPT_XXX 
                         other options are found in - PHP website

          value = value of the url

3. curl_exec() - which is used to execute a $charecter in which the information has be moved 

4.curl_close() - this is used to close the curl connection