Posts

Showing posts with the label cURL

How To Enable Whorl Inwards Server From Final (Ubuntu)

To enable curlicue parcel php5-curl should live on installed. Open "Terminal" together with execute the next command: sudo apt-get install curlicue libcurl3 libcurl3-dev php5-curl After installing libcurl you lot should restart the spider web server amongst next command, sudo /etc/init.d/apache2 restart Hope this solution volition handle to enable curlicue inwards your ubuntu system. It worked on mine :) Sumber http://developer-paradize.blogspot.com

Php Twine Functions For Ship Service Too Give-Up The Ghost Asking Using Codeigniter

Install the whorl library from https://github.com/philsturgeon/codeigniter-curl CodeIgniter-cURL is a CodeIgniter library which makes it slow to exercise uncomplicated cURL requests together with makes to a greater extent than complicated cURL requests easier too. //load the Curl library $this->load->library('Curl'); //Request using POST Method $url = 'http://postexample.com/json.php'; echo $this->curl->simple_post($url, false, array(CURLOPT_USERAGENT => true)); //Request using GET Method $get_url = http://getexample.com/json.php; echo $this->curl->simple_get($get_url, false, array(CURLOPT_USERAGENT => true)); It is really of import to gear upwards CURLOPT_USERAGENT, otherwise many servers may turn down your asking if yous don't larn out user agent. //PHP version, yous tin travel lay anyvalue for CURLOPT_USERAGENT, merely it shouldn't hold upwards empty or blank. curl_setopt($ch, C...