PHP code example of tzfrs / curl

1. Go to this page and download the library: Download tzfrs/curl library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tzfrs / curl example snippets



$curl = new Curl;
$curl->get('http://tzfrs.de');

$curl = new Curl;
$curl->get('http://tzfrs.de/', array(
    's' => 'searchterm',
));

$curl = new Curl;
$curl->setFollowlocation()
    ->setMaxredirs(15)
    ->get('http://tzfrs.de');
if ($curl->hasError) {
    print $curl->errorNo .': '. $curl->error;
}
else {
    print $curl->response;
}